-
Type:
Enhancement
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 12
-
Component/s: core-libs
-
b24
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
|---|---|---|---|---|---|---|
| JDK-8216215 | 13 | Claes Redestad | P4 | Resolved | Fixed | team |
In the current implementation, we create a Properties object, then iterate over that to create a map that we store away internally (VM.savedProperties), then we remove a few internal properties from the properties object.
By first creating the HashMap we achieve two things:
1) iterating over a HashMap.entrySet() is cheaper than iterating over CHM.entrySet() (less allocations, fewer classes loaded in a sensitive bootstrap phase)
2) we avoid the overhead of first adding then filtering out the properties we don't want to publish
All in all a small but measurable startup gain.
By first creating the HashMap we achieve two things:
1) iterating over a HashMap.entrySet() is cheaper than iterating over CHM.entrySet() (less allocations, fewer classes loaded in a sensitive bootstrap phase)
2) we avoid the overhead of first adding then filtering out the properties we don't want to publish
All in all a small but measurable startup gain.
- backported by
-
JDK-8216215 Improve initial setup of system Properties
-
- Resolved
-