combrelocs improves startup time
Bryce McKinlay
bryce@waitaki.otago.ac.nz
Sun Mar 10 14:34:00 GMT 2002
Some good news: the new "combreloc" linker feature, which is on by
default if you use linux binutils 2.12.90.0.1 with a recent glibc, gives
a measurable improvement in the libgcj startup cost...
before:
$ LD_DEBUG=statistics ./a.out
04296: number of relocations: 47776
04296: number of relocations from cache: 604
after:
$ LD_DEBUG=statistics ./a.out
23496: number of relocations: 16973
23496: number of relocations from cache: 33451
On my PowerBook, the runtime for a "hello world" dropped from ~0.15s to
~0.11s.
regards
Bryce.
More information about the Java
mailing list