How to improve performance of SimpleDateFormat wrapped in ThreadLocal?

前端 未结 4 1960
梦如初夏
梦如初夏 2020-12-25 12:54

This is on Java 7 (51) on RHEL with 24 cores We are noticing a rise in average response times of a java SimpleDateFormat wrapped in thread local as we increase the thread po

4条回答
  •  一整个雨季
    2020-12-25 13:21

    Our usecase was write once(single thread) and read many times(concurrently). So i converted Date to String at the time of storing the data, instead of doing this each time a request needs to be responded.

提交回复
热议问题