This patch modifies Scope and all clients of it to use arrays for
local variables instead of lists. Since these lists are mostly static,
we incur a chunk of memory overhead by handling them with two
ArrayLists instead of two arrays. The patch doesn't really produce any
performance benefit, since ArrayList is a fast O(1) to access indexed
elements, but it should be a pretty good memory savings considering
Scopes are created for just about every method or block invocation.

This is applicable to cnutter_work1 without the CRef patch.

--
Charles Oliver Nutter @ headius.blogspot.com
JRuby Developer @ jruby.sourceforge.net
Application Architect @ www.ventera.com

Attachment: scope_local_vars_as_array.patch
Description: Binary data

Reply via email to