[YANGTOOLS-351] IdentitySchemaNodeImpl retains empty HashMaps Created: 31/Oct/14  Updated: 10/Apr/22  Resolved: 09/Nov/15

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement
Reporter: Robert Varga Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Blocks
blocks YANGTOOLS-114 Milestone: Lithium: Analysis & implem... Resolved

 Description   

We have identified that IdentitySchemaNodeImpl retains ~1300 empty HashMap instances, costing ~63kB memory. This is not necessary because after we resolve the schema context, these are immutable, so should really refer to Collections.emptyMap().



 Comments   
Comment by Tony Tkacik [ 09/Nov/15 ]

Affected code is not use in production anymore.

Generated at Wed Feb 07 20:52:58 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.