JsonParser thread safety

3,761 views
Skip to first unread message

Jérôme Blouin

unread,
Apr 8, 2013, 11:58:20 AM4/8/13
to googl...@googlegroups.com
Hi,

I'd like to know if JsonParser is thread safe so I can create only one instance of it to parse requests concurrently?

Thanks

Brandon Mintern

unread,
Apr 8, 2013, 4:16:54 PM4/8/13
to google-gson
Yes, it's threadsafe. But then again, a JsonParser has no fields at all, so it doesn't use much memory, anyway. So if it's more work to reuse the same instance, it might not be worth it.


--
You received this message because you are subscribed to the Google Groups "google-gson" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-gson...@googlegroups.com.
To post to this group, send email to googl...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-gson?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages