-
Notifications
You must be signed in to change notification settings - Fork 610
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
wire: caching fails to make tests run instantaneously #25
Comments
Looking at the source code for the |
Update: I tried putting the testdata directory into a zip file and updating the test to work with that, but got no significant speedup on cache hits. It's puzzling. |
@zombiezen is saying the slowdown could be the result of the tests opening a bunch of Go standard library packages for type checking. |
This is not a wire issue. It's an issue in |
It should take no more than a second to run the tests in the cached case, but really it should be on the order of 100 milliseconds or less.
The problem appears to be that there are many subtests that are dynamically generated. The dynamic generation takes a while, and apparently has to happen regardless of whether there are cache hits for all the tests.
An alternative that would probably allow caching to operate normally would be to generate the test code.
The text was updated successfully, but these errors were encountered: