A cache of which patterns have been processed for a given Path, in
this walk step and the steps that led to it.
A step only adds to it before it makes the caches for the next
steps, so a copy can look up the chain of caches before it, in
place of copying their entries. A pattern for a path that a cache
up the chain has already seen is added to that cache's set, so that
the other steps that share it see it too. Paths are keyed by their
full path, because path-scurry can make a new Path object for the
same path once its cache of children is full.
A ** that is the first portion of its pattern has the same glob
string as one that is not, but only the second one follows a
symbolic link. The cache does not store the first kind, and a lookup
is always for a pattern that comes after another portion.
Processor.processPatterns only looks up a pattern that comes
after a string portion of one of the walk's patterns, so only those
patterns are stored. A walk of patterns like **/*.js stores
nothing, and all of its steps use the same cache object.
A cache of which patterns have been processed for a given Path, in this walk step and the steps that led to it.
A step only adds to it before it makes the caches for the next steps, so a copy can look up the chain of caches before it, in place of copying their entries. A pattern for a path that a cache up the chain has already seen is added to that cache's set, so that the other steps that share it see it too. Paths are keyed by their full path, because path-scurry can make a new Path object for the same path once its cache of children is full.
A
**that is the first portion of its pattern has the same glob string as one that is not, but only the second one follows a symbolic link. The cache does not store the first kind, and a lookup is always for a pattern that comes after another portion.Processor.processPatterns only looks up a pattern that comes after a string portion of one of the walk's patterns, so only those patterns are stored. A walk of patterns like
**/*.jsstores nothing, and all of its steps use the same cache object.