-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Adding in caching #28
Comments
Hi @sb8244, I'm having a hard time with the start-up times and something along the lines of what you suggested would improve things tremendously. Would you like to publish your work in a fork of this project? |
Is this available? I'm trying to add Karma to a very large project and experiencing very slow startup time, a couple minutes. Setting debug log level, looks like majority of the time is in preprocessor.babel processing each file. |
I think the caching system should be in karma itself so that it's also available to other preprocessors. |
I will put together a small code example today. Not sure if I'll be able to
pr it that quick, but maybe I can.
I don't think it should be in karma, personally.
|
Hi All, here is a patch that applies this. I'll see about putting a PR together for this! I've been using this for a year w/o much problem
|
Any news on this? |
Extracted PR #34 for this. @johannesjo |
I think this would be a fantastic feature to add. I'm running tests in parallel on several very slow machines, and I've sped up my workflow by running as many steps as possible on a single, fast machine, then distributing artifacts to test to the slow test devices. If I could run babel's transformations in advance as well, I could cut ~10 minutes of test startup time on each slow device. @MattiasBuelens, are you a maintainer? Can you or someone else in charge comment on this proposal and/or suggest alternative approaches? |
I revived #34 as #77, with some improvements. I simplified it to remove the extra file read, and I made the cache path configurable, with the default being not to cache at all. In case this gets no traction from the maintainers, I published @joeyparrish/karma-babel-preprocessor on NPM for those who want to use it right away. |
This has allowed me to cut 60 seconds of latency off the startup of tests on a large project. |
Would you be interested in receiving a local file storage caching mechanism in this project? I implemented to improve independent karma startup performance and was able to cut processing time in half.
It is based on the
node-localcache
project w/ md5 content hash of the originalPath file vs the output JS.The text was updated successfully, but these errors were encountered: