[YANGTOOLS-1116] Disconnect StmtNamespaceContext from StmtContext Created: 24/Jun/20  Updated: 28/Oct/20  Resolved: 01/Jul/20

Status: Resolved
Project: yangtools
Component/s: parser
Affects Version/s: None
Fix Version/s: 5.0.4, 4.0.11, 3.0.13

Type: Bug Priority: High
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot_20200624_133713.png    
Issue Links:
Relates
relates to YANGTOOLS-1115 StmtNamespaceContext is retained need... Resolved
relates to YANGTOOLS-1138 Intermittent failure to resolve prefi... Resolved
Epic Link: Parser Performance

 Description   

StmtNamespaceContext can be legally retained by AntlrYangXPathExpression, by which point it really should be a fixed prefix mapping for that instantiation.

In particular we should not be retaining a SubstatementContext, as that ends up retaining large chunks of BuildGlobalContext.

Examine lifecycle of affected codepaths and make sure we end up retaining a minimal context.



 Comments   
Comment by Robert Varga [ 29/Jun/20 ]

Even with YANGTOOLS-1115 in place, this will typically be need, as equality is very common in when expressions.

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