[YANGTOOLS-1256] Reconsider InferredStatementContet.childCopyType storage Created: 18/Feb/21  Updated: 28/Aug/21  Resolved: 28/Aug/21

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

Type: Improvement Priority: Low
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split from YANGTOOLS-1253 Optimize StatementContextBase layout Resolved
Epic Link: Parser Performance

 Description   

The work in YANGTOOLS-1253 achieved its basic goals trimming down object sizes in most deployements while creating some free space.

One remaining item is InferredStatementContet.childCopyType, which is using a reference for something which is only 2 bits of semantics. We have 4 bits still available in StatementContextBase.copyHistory, hence it might make sense to eliminate the field and reconstruct the object on demand.

Doing so will translate into further savings of 8/8/0/0 bytes – which may be interesting, but does not really change anything in most deployments.


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