Repository navigation
v0.35.0
MINOR: before 1.0.0, a breaking change increases MINOR. Below a kind with scope rules, DocVisit.names and DocVisit.later are views and not instances of Set. A caller that tested them with instanceof Set gets another answer, thus this release counts as a breaking change. No export changes.
Fixes
- A walk keeps no copy of the names of the scope rules (D201). In a sequence, each named step got the names of all the steps before it. A nest of binders copied its names at each level. Thus
walk,check,refsOf,attributeGraphandtypeChecktook a time and a memory of the square of the size. The check of a sequence of 20000 named steps used more memory than the heap had. After this fix, they are linear in the size of the document, and their answers do not change (STATIC.LINEAR). freeOfof the plan and the check C7 ofconformsread the scope rules one time for each document (D201). Before, they read a list of names for each part.
Changes of behavior
- Below a kind with scope rules,
DocVisit.namesandDocVisit.laterare views of the typeReadonlySet<string>(STATIC.LINEAR). Each read of their size or of their items makes a new set. The names and their order do not change. - After the visit of a document,
hasof its names takes time linear in the count of the binders around it. At the visit,hasreads the counts of the walk.