[Greasemonkey] MagicLine
Edward Lee
edilee at gmail.com
Wed Aug 3 16:24:41 EDT 2005
On 8/3/05, Nikolas Coukouma <lists at atrus.org> wrote:
> Theoretically, strings should be able to go on until there's no more
> memory space for it to fill because the underlying prefs system uses
> char* . I haven't heard of anyone hitting a limit, but you're certainly
> welcome to try making Really Big Strings and storing them.
Well.. I put some big long value inside my prefs.js file for
greasemonkey to request.
edward staff 320016968 Aug 3 10:16 prefs.js
The actual value is 320,000,000 characters long, and other bytes are
used for other preferences/text stuff.
I used greasemonkey to pull the value using GM_getValue('tmp').length,
and it reports it to be exactly 320,000,000. So I guess there
shouldn't be a worry about being able to store large values....
However, it does impact the load time of firefox to read in the
prefs.js ;) Pulling the actual value (and calculating the length)
doesn't take too long on the system I'm on.. but I hope people aren't
storing hundred megs of data in the preferences. :)
--
Ed
More information about the Greasemonkey
mailing list