Variable access with depth > 0 should be more static
----------------------------------------------------

                 Key: JRUBY-1611
                 URL: http://jira.codehaus.org/browse/JRUBY-1611
             Project: JRuby
          Issue Type: Improvement
          Components: Compiler
            Reporter: Charles Oliver Nutter
            Assignee: Charles Oliver Nutter
             Fix For: JRuby 1.1


DynamicScope currently recurses when the variable depth is > 0 with a less-than 
check and subtraction of 1 for each recursion. This is overhead that the 
compiler could avoid by just calling DynamicScope.getParentScope n times and 
then calling a depth-less method to manipulate locals. It would likely speed up 
depth > 0 variables considerably.

-- 
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