Improve FileStat performance using a java-heap allocated structure
------------------------------------------------------------------

                 Key: JRUBY-2299
                 URL: http://jira.codehaus.org/browse/JRUBY-2299
             Project: JRuby
          Issue Type: Improvement
          Components: Extensions
    Affects Versions: JRuby 1.1RC2
         Environment: MacOS
            Reporter: Wayne Meissner
            Priority: Trivial
             Fix For: JRuby 1.1+
         Attachments: jruby+HeapStruct.patch

By changing the way native structures are allocated/read/written, you can boost 
FileStat performance by a good bit - on MacOS 10.4 with java 1.5, by about 300%.

The attached patch is a cut-down quick&dirty hack of some jffi code to use 
heap-allocated structures instead of native-memory allocated structures for 
simple cases where that will work ok (e.g. stat(2), fstat(2)).

Its really only a proof-of-concept, and needs cleaning up by someone, but I 
thought it was worth putting in an issue in case someone has time to look at it.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to