[YANGTOOLS-1043] Eliminate duplicate DataSchemaNode indexes Created: 25/Nov/19 Updated: 27/Nov/19 Resolved: 27/Nov/19 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | parser |
| Affects Version/s: | None |
| Fix Version/s: | 4.0.3, 3.0.7 |
| Type: | Task | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
It seems we can eliminate 'childNodes' Map in statements which are SchemaTreeAware by reusing schema tree index. The lookup then becomes an additional check to ascertain the looked up node is in fact a DataSchemaNode. |