typeTokenCache contention

73 views
Skip to first unread message

Pawel Veselov

unread,
Mar 27, 2014, 3:12:18 PM3/27/14
to google-gson
Hi.

I see a lot of contention in Gson.typeTokenCache, just because it has to be synchronized. Prevailing majority of calls to this cache are get() (adapter implementation will quickly saturate), so synchronized map may be an overkill.

How about this?

Thank you.

tags-2.2.4.cache.diff

Inderjeet Singh

unread,
Mar 27, 2014, 11:52:53 PM3/27/14
to googl...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages