[OPENDJ-7144] Fix code that has been annotated with JavaUpgrade version <= 11 Created: 22/Apr/20  Updated: 25/Jun/20  Resolved: 25/Jun/20

Status: Done
Project: OpenDJ
Component/s: core apis, core server, performance
Affects Version/s: 7.0.0
Fix Version/s: 7.0.0

Type: Task Priority: Critical
Reporter: Matthew Swift Assignee: Matthew Swift
Resolution: Fixed Votes: 0
Labels: None

Epic Link: Miscellaneous 7.0
Story Points: 2
Dev Assignee: Matthew Swift


Now that we are using JDK11 we can consider cleaning up existing code to use the latest API improvements. In particular, code annotated with JavaUpgrade can be migrated, especially the code in the ByteString class which could bring significant performance improvements.

This issue can be resolved once we have no more code annotated with JavaUpgrade. We can keep the annotation though, since we'll consider upgrading JDK in the future.

Comment by Matthew Swift [ 11/May/20 ]

Admittedly it's not super-critical for 7.0, but it certainly would be nice to resolve it given the potential performance gains (which should be evaluated).

Comment by Matthew Swift [ 25/Jun/20 ]

This change resulted in a 2% perf improvement on my laptop for searchrate, presumably due to the vectorized ByteString comparisons.

Generated at Thu Aug 13 10:43:19 UTC 2020 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.