[Greasemonkey] MagicLine
Jeff Barr
jeff at vertexdev.com
Wed Aug 3 18:10:56 EDT 2005
Excellent, this is very helpful.
Jeff;
On Wed, 3 Aug 2005 15:24:41 -0700, "Edward Lee" <edilee at gmail.com> said:
> 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
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
More information about the Greasemonkey
mailing list