You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking to cache compiled scripts in Google App Engine. App Engine does some interesting things in the cloud. For local environments it is enough to stick the compiled script into a static hash, however in Google App Engine there is no guarantee that the class will stay loaded over time. As such I am getting poor hit ratios for compiled scripts stored in this way.
I tried to store the compiled script in memcache, but I run into an issue on retrieval from memcache in that the generated class used to represent that compiled script is not found by Google App Engine class loader.
I believe I can get good performance is I was able to cache the compile bytes that represent the AST created by the interpreter in memcache, then somehow construct a Script implementing object from that information.
My question is, is this feasible, can I expect a performance improvement with this method, or is there another approach I could try instead?
Thanks again for all your hard work on Rhino. It is truely a great piece of software!
The text was updated successfully, but these errors were encountered:
I am looking to cache compiled scripts in Google App Engine. App Engine does some interesting things in the cloud. For local environments it is enough to stick the compiled script into a static hash, however in Google App Engine there is no guarantee that the class will stay loaded over time. As such I am getting poor hit ratios for compiled scripts stored in this way.
I tried to store the compiled script in memcache, but I run into an issue on retrieval from memcache in that the generated class used to represent that compiled script is not found by Google App Engine class loader.
I believe I can get good performance is I was able to cache the compile bytes that represent the AST created by the interpreter in memcache, then somehow construct a Script implementing object from that information.
My question is, is this feasible, can I expect a performance improvement with this method, or is there another approach I could try instead?
Thanks again for all your hard work on Rhino. It is truely a great piece of software!
The text was updated successfully, but these errors were encountered: