[YANGTOOLS-925] QNameToStatementDefinition.get() without a QName Created: 25/Dec/18 Updated: 09/Jan/24 |
|
| Status: | Confirmed |
| Project: | yangtools |
| Component/s: | parser |
| Affects Version/s: | None |
| Fix Version/s: | 14.0.0 |
| Type: | Improvement | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Current interface requires creation of a QName even in the case of a hot path lookup of an unprefixed statement. The situation could be improved if we provided a pure localName-based lookup, which would be catered by the implementation.While this requires keeping another map, it has the benefit of short-circuiting the need for performing localName validation as well as allocation of a short-lived object. |