[YANGTOOLS-318] Inefficient instantiation of Booleans Created: 18/Sep/14 Updated: 10/Apr/22 Resolved: 25/Sep/14 |
|
| 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 |
||
| Description |
|
Bits-generated class contains a getDefaultInstance() methhod, which instantiates temporary booleans, leading to needless garbage being generated. Fix it by reusing singleton instances. |
| Comments |
| Comment by Robert Varga [ 18/Sep/14 ] |