Optimize StatementContextBase layout
(YANGTOOLS-1253)
|
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | parser |
| Affects Version/s: | None |
| Fix Version/s: | 7.0.0 |
| Type: | Sub-task | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
ModelProcessingPhase enumeration really is a strongly-ordered, i.e. it amounts to what steps need to be taken, in order. Define ExecutionOrder, which is actually a set of positive byte values reflecting current implications of ModelProcessingPhase. This allows us to store the equivalent of ModelProcessingPhase in StatementContextBase for the cost of a single byte instead of a reference, freeing up 3-7 bytes of storage. |