[YANGTOOLS-372] yang-data-impl: take advantage of child sizing hints Created: 14/Nov/14 Updated: 10/Apr/22 Resolved: 19/May/15 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | ||
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Issue Links: |
|
||||||||
| Description |
|
Memory profiling has shown that we waste quite a bit of memory in sparse HashMap instances. We need to lower the default allocation, as most of our maps are typically small and then start using the sizing hints to size our structures appropriately. |
| Comments |
| Comment by Robert Varga [ 14/Nov/14 ] |
|
https://git.opendaylight.org/gerrit/12837 After these, we need something smart to take advantage of the hints in the individual builders. |
| Comment by Tony Tkacik [ 19/May/15 ] |
|
childSize hints were incorporated in provided patchsets into code base. |