[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 |
||
| Issue Links: |
|
||||||||
| 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. |