-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thread issues with date formatter #162
Comments
Original comment by
|
Original comment by |
Original comment by |
Original comment by |
We have too many Thread blocked at below line due to synchronized keyword. We have heavy usage of date format in gson. |
@ilyassoomro you can probably install a custom date adapter that uses separate |
Also - this adapter might not be of the exact format you want, but it's threadsafe & doesn't use synchronized. |
The perfomance hit might be an issue for us so we resorted to using an overrride by using our own Serde for Uses FastDateFormat instead of SimpleDateFormat to ensure you dont take a performance hit due to serial usage (synchronize write and read) Have added some sample code in github gist. |
Original issue reported on code.google.com by
mcinto...@gmail.com
on 25 Sep 2009 at 4:12The text was updated successfully, but these errors were encountered: