Optimize StatementContextBase layout (YANGTOOLS-1253)

[YANGTOOLS-1254] Define ModelProcessingPhase.ExecutionOrder Created: 17/Feb/21  Updated: 18/Feb/21  Resolved: 18/Feb/21

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.


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