You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add cache for known plugins
We have to call `require.resolve(…)` ~10 times per call to `parse(…)`. These calls generally take microseconds however if you call `prettier.format(…)` several thousand times the times add up. It also adds up for embedded documents which call `parse(…)` a large number of times.
This adds a cache for these calls because generally only a few will ever be installed and Node.js will not cache misses internally.
* Update src/plugins.ts
Co-authored-by: Robin Malfait <[email protected]>
* Update changelog
---------
Co-authored-by: Robin Malfait <[email protected]>
0 commit comments