I'd even go as far as limiting it to 16kb. (possibly with a transition phase during which going above 16kb only prints warnings)
On 5/10/13 12:47 AM, Robert Kaiser wrote: > FWIW, we had a pretty high-ranking topcrash in > https://bugzilla.mozilla.org/show_bug.cgi?id=836263 where an add-on > stored strings up to at least 128MB in prefs, and Nightly now limits > prefs to 1MB max, and that add-on switched to indexedDB instead. This > should happen more, for sure. I'd think that anything larger than a few > KB probably doesn't belong in a pref. > We couldn't easily set that limit mentioned above as low as we'd like > because up to now we had no limit at all and some add-ons definitely > store large stuff in prefs. Given that we probably read prefs in startup > and before we can do anything useful with the launched Firefox, I wonder > how much of a perf problem those large prefs tend to be, actually. > > Robert Kaiser > _______________________________________________ > dev-platform mailing list > dev-platform@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-platform -- David Rajchenbach-Teller, PhD Performance Team, Mozilla _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform