One of the bottlenecks for our filesystem access in JRuby is
UNIXFileSystem.canonicalize0, a native method that does one or more stat
calls. This shows up on any profile that hits the filesystem heavily.
I noticed while browsing its source today that there's two properties
you can set, normally off:
-J-Dsun.io.useCanonCaches=true -J-Dsun.io.useCanonPrefixCache=true
On a quick test, I did not see anything obviously sped up by this, but
it may be worth running some longer tests. Anyone got an app that's
filesystem-heavy they could try?
- Charlie
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email