Boxed variable compilation could use lighter-weight scopes
----------------------------------------------------------

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


When a scope contains no boxed variables, but the boxed variable compiler is 
being used, it may be a perf win to use a lighter-weight scope than 
DynamicScope. DynamicScope is already lazily allocating the variable array it 
contains, but it could be made lighter by eliminating all references used for 
variable management. This could make some method bodies with no captures 
variables faster to execute, since they'd have less per-call overhead.

Also, as part of this fix, boxed variable scopes with no captured variables 
could skip the initialize-all-vars-to-nil for the DynamicScope they're using. 
This would eliminate that init cost for those methods.

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