-
Friends, last time I profiled Packwerk a few years ago, about 2/3 of the execution time was spent parsing. A coworker just recently profiled it again and basically this still seems to be the case. I tried to write a new parser based on Well, prism is now a thing. Would it make sense to swap out the currently used whitequark parser for prism? @kddnewton how much faster do you expect Prism to be compared with the whitequark parser? I couldn't find any benchmarks. If this makes sense, I might take a stab at it - provided I can get someone to pay me for the time spent on it |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I would expect it to be significantly faster. As an example, I used it as the basis of the parser gem for running rubocop, and the benchmarks are here: https://github.com/kddnewton/parser-prism?tab=readme-ov-file#benchmarks. I would be very supportive of this work! |
Beta Was this translation helpful? Give feedback.
-
I believe we've discussed this internally at some point. I'm also very much in favour of this change, but we would have to update |
Beta Was this translation helpful? Give feedback.
I would expect it to be significantly faster. As an example, I used it as the basis of the parser gem for running rubocop, and the benchmarks are here: https://github.com/kddnewton/parser-prism?tab=readme-ov-file#benchmarks.
I would be very supportive of this work!