Issue #2203Opened August 19, 2019by benvmatheson1 reactions

[Enhancement] Possible configuration bloat

Question

We had an issue with Grapes metadata (Components, Style, etc.) growing to the point it was causing issues on our end. After inspecting we noticed that the HTML/CSS grapes was outputting was less than 5k, but the Components/Style objects were storing at ~190k.

After looking into the components, I noticed most of the data is keys with empty/default values ("", [], 0, etc.). Would it be worth leaving these values out to save space, and changing the logic within grapes to assume undefined attributes represent empty/default values?

Answers (2)

artfAugust 26, 20190 reactions

Consider using avoidDefaults flag, it reduces config footprint by removing these default values

Correct

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.