[Objectscript-devel] [OBJECTSCRIPT] Issue #OBJS106 modified
Brought to you by:
rob_d_clark
From: Rob C. <rob...@ma...> - 2003-04-28 18:39:18
|
Issue OBJS106 (ObjectScript performance) has just been modified by user rob...@ma... You can view the issue detail at the following URL: <http://icandy.homeunix.org:443/scarab/issues/id/OBJS106> The following modifications were made to this issue: a couple of tactics that may help: 1) use high performance collection classes, instead of java.util.Hashtable 2) reduce object creation... use a single hash-table per scope "type" to map identifier to slot, and then use an array of members per instance of the scope, rather than a hash-table per instance of scope 3) statically resolving variable references (see OBJS39) 4) hoisting.... if we had a way to hint to the compiler that "a.b" if a is the same object the second time it is evaluated, then "a.b" will evaluate to the same thing, then the compiler could do more to cache the result of evaluating "a.b" the first time |