Currently the java listener uses a case statement. I
would be nice to somehow use inner classes and a
hashmap to make that lookup go faster. Right now it
just causes a bottleneck.
Instead of altering the existing generator,
create a new code generator module at
com.cube42.ramp.generator.java2
Have the new module generate the code using this new scheme.
It could be that the old scheme is faster and only with a
profilier can we tell for sure. It also might be that in
some cases a use would want to generate the API using a case
statement and in other cases they would want to use the
hashtable/inner class trick. Best to just leave 2 options
for now.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=318102
Instead of altering the existing generator,
create a new code generator module at
com.cube42.ramp.generator.java2
Have the new module generate the code using this new scheme.
It could be that the old scheme is faster and only with a
profilier can we tell for sure. It also might be that in
some cases a use would want to generate the API using a case
statement and in other cases they would want to use the
hashtable/inner class trick. Best to just leave 2 options
for now.