Currently in my interpreter scopes are represented as specialized
classes so:

Frame0, Frame1, Frame2, Frame3, Frame4
Those hold symbols and values for scopes that have zero to four
symbols respectively.

Frame5to10
This does the same but as a list, and uses binary search.

FrameN
>From 10 up, we use a hashtable to represent symbols/values.
(note that in my language is common to use local scopes with 20 or 30
definitions)

I think this is mostly ok regarding performance, but i would like to
ask
is there a better way to do it?

--

You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=.


Reply via email to