patch-package icon indicating copy to clipboard operation
patch-package copied to clipboard

patch-package too slow

Open QGB opened this issue 1 year ago β€’ 2 comments

./node_modules/.bin/patch-package klinecharts
patch-package 8.0.0
β€’ Creating temporary folder
β€’ Installing [email protected] with npm

it tooks long time , Is there has --loglevel verbose to see what hangs?

QGB avatar Aug 09 '23 03:08 QGB

Our team has noticed bottlenecks with patch-package in the build step. It takes 3 minutes to apply a two line patch to jest-environment-jsdom πŸ€” .

Screenshot 2023-08-23 at 10 03 08

hzhu avatar Aug 23 '23 17:08 hzhu

I switched to this one https://www.npmjs.com/package/custompatch as patch-package became impractical. Taking too much time to create patches, sometimes it doesn’t. And to my experience it's like there's a limited number of patches that can be created, because it has hard memory limitations https://github.com/ds300/patch-package/blob/c7c63bf80b3c6b8640b933e20229121b4edfc100/src/makePatch.ts#L253C7-L253C7. I tried increasing that limit, but it stopped creating patches.

gilons avatar Nov 01 '23 00:11 gilons