I think there may be a serious problem with the code in
ScriptableObject.accessSlot() that updates the slot name in order to
avoid future calls to String.equals(). I suspect that updating the
field repeatedly may have a bigger performance impact than calling
String.equals() - at least that's what my limited testing suggests. I
found that for a simple property access from the shell, the name gets
swapped not once but _twice_, and scripts that ran inexplicably slow
before now run really fast. Other scripts that have been fast before
seem unaffected. I guess it really depends on how and how often you
access properties.

Can somebody look into this?

hannes
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to