Modify ↓
#19704 closed enhancement (fixed)
[Patch] DateUtils: sychronization is no longer needed thanks to JSR 310
| Reported by: | simon04 | Owned by: | simon04 |
|---|---|---|---|
| Priority: | normal | Milestone: | 20.11 |
| Component: | Core | Version: | |
| Keywords: | java8 jsr310 performance timestamp | Cc: | Don-vip, taylor.smock |
Description
Thanks to JSR 310, JEP 150 and #13376, almost everything in DateUtils is thread-safe. So we can drop the synchronized function modifiers.
Would someone please review the attached patch? Thanks!
Doing 800k tests in parallel (n=64) did not reveal any bugs and received a nice speed-up (13.992s → 2.213s).
Attachments (1)
Change History (5)
by , 5 years ago
| Attachment: | 19704.patch added |
|---|
comment:1 by , 5 years ago
| Milestone: | 20.09 → 20.10 |
|---|
comment:2 by , 5 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.



In 17104/josm: