[BGPCEP-933] Switch config loaders to DOM API Created: 17/Oct/20 Updated: 23/Feb/21 Resolved: 23/Feb/21 |
|
| Status: | Resolved |
| Project: | bgpcep |
| Component/s: | Config Loader |
| Affects Version/s: | None |
| Fix Version/s: | Silicon |
| Type: | Improvement | Priority: | High |
| 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 |
|
All four config loaders end up translating the parsed structure to Binding form only to feed it into DataBroker. This is completely unnecessary, as the data is coming from XML files and is therefore in DOM form – hence we end up encoding it to and from Binding for no particularly good reason. We are also using inefficient datastore operations in individual implementations, which really should be using the bare minimum required. Switching to DOM interfaces is a bit of juggling of paths, but will improve performance and most notably will make config loaders independent of codec services. |