Alternatives to FastDateFormat for efficient date parsing?

后端 未结 6 938
-上瘾入骨i
-上瘾入骨i 2021-02-05 04:29

Well aware of performance and thread issues with SimpleDateFormat, I decided to go with FastDateFormat, until I realized that FastDateFormat

6条回答
  •  深忆病人
    2021-02-05 05:10

    Do you really need to parse dates that quickly? Have you tested SimpleDateFormat and found it too slow for your needs?

    Note, there are a variety of ways to cache slow-to-construct, non-thread-safe class instances (e.g. ThreadLocal, pools).

提交回复
热议问题