GNOME Optimization
Tony Lewis
gnutered at yahoo.com.au
Thu May 11 08:02:01 BST 2006
Simon Law wrote:
> Joel, you may want to generate a patch and provide comparison numbers
> for performance increases. The decrease in legibility may be worth a
> large jump in conffile parsing. But something small like 10% is
> probably not a big deal.
>
I get a reduction from 19MB to 17MB. (when testing by hand, cut and
paste from Joel's script, and only to temp files, so no indication of
whether this makes a performance difference or not).
tony at argon:~$ cd /usr/share/gconf/schemas/
tony at argon:/usr/share/gconf/schemas$ for f in *; do cat $f | sed -e '/^[
\t]*$/d;s,^[ \t]*,,;s,>[ \t]*<,><,g;s,[ \t]*$,,' | tr '\012' ' ' >
/tmp/schemas/$f; done
tony at argon:/usr/share/gconf/schemas$ du -sh /usr/share/gconf/schemas
/tmp/schemas
19M /usr/share/gconf/schemas
17M /tmp/schemas
Tony
More information about the ubuntu-devel
mailing list