-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-Use (and cache?) common XPaths #2350
Comments
One way I could imagine doing that would be to add promises to |
Here's what I see many |
Nice! more quantitatively: download.file("https://github.com/r-lib/lintr/files/13455583/xpath_trace.log", tmp<-tempfile())
l = readLines(mtp)
global_nodes = re_matches(l, "//(?<node>[A-Za-z_-]+)")
as.data.frame(sort(table(node = unlist(global_nodes$node))))
i.e. >50% of all |
So, what I have in mind is lazily do a By lazily I mean ideally this cache would only be built once a linter actually tries to use it. |
Inspired by a comment by @MichaelChirico which I can't find at the moment.
Some linters share common XPath logic. This is currently in no way cached, so all linters have to re-evaluate the common XPath logic.
It might be worth to
Related to #963
The text was updated successfully, but these errors were encountered: