Hi,

I did a bit more research - It seems that it is not really necessary to 
have static Memcache and Datastore services as their instantiation is very 
fast:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/e19b792042b2ff9b

And also we should not assume thread-safety of any class not documented as 
being thread-safe..

Also some testing of my own shows the runtime for creating 1000 instances:

Datastore: 5 ms
Memcache: 61 ms


So I'll just create them whenever I need.

Daniel

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/BgWMWoQytgQJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to