[Greasemonkey] Re: Scripts in ~/.mozilla/scripts?
Aaron Boodman
zboogs at gmail.com
Tue Jun 14 20:35:05 EDT 2005
> We re-read, re-parse, and re-process the XML file on every page load
> instead of storing the pertinent information in an in-memory data
> structure?
Yes, and on top of that, Greasemonkey is written in an interpreted,
loosely-typed, scripting language! The HORROR!
In all seriousness, it's something to look into optimizing. But I
seriously doubt that it is significant compared to executing multiple
HTTP requests, loading, parsing, and executing multiple javascripts,
and doing multiple expensive DOM manipulations per page-load.
On the other hand it provides significant elegance and maintenance
benefits, not having to deal with cache invalidation like you were
sketching out.
I'm usually of the 'do it the simplest way first, optimize second'
school. If loading config every page load turns out to be significant,
I'm happy to optimize it away. Until then, I prefer the easy way.
> I don't feel so bad about the 9kb reg ex for .tld anymore.
Well, to each his own.
More information about the Greasemonkey
mailing list