canonical / pebble

Take control of your internal daemons!
GNU General Public License v3.0
136 stars 51 forks source link

Every exec stores several KB of JSON in state (due to environment) #411

Open benhoyt opened 2 months ago

benhoyt commented 2 months ago

I just ran a pebble exec of a simple command (echo foo) locally, and because it stores all the command arguments in the task data, it expanded to over 4KB of JSON data in state -- mostly due to the environment which we now (since #234) copy os.Environ as a base. It would be good to find a way to avoid storing this much in state, for example, can we expand os.Environ lazily, later in the game?