[YANGTOOLS-1391] Add a custom SoftSchemaSourceCache Created: 25/Jan/22 Updated: 08/Mar/22 Resolved: 26/Jan/22 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | parser |
| Affects Version/s: | None |
| Fix Version/s: | 8.0.0, 7.0.13 |
| Type: | Improvement | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
We are currently using FinalizableReferenceQueue to perform unregistration of sources. This seems a bit wasteful, as we should be able to perform these duties either through a Cleaner, or perhaps through listening to the cache lifecycle. The lifecycle in GuavaSchemaSourceCache is quite arcane with quite a few outliers. Introduce a custom SoftSchemaSourceCache as its replacement. |