-
Notifications
You must be signed in to change notification settings - Fork 93
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
v6 is significantly slower than v5 #120
Comments
Thanks @Samze and @jamesjoshuahill, yes this is a known issue. In order to support go modules, Over time, Our only other recourse is to implement caching inside
This is likely to speed things up considerably but is quite a bit of work. I tend to think this may be worth the effort, but I have not had time to prioritize it (I got halfway through an implementation about 5 months ago, but abandoned it). |
Thanks for looking into this @joefitzgerald, unfortunately it's so frustratingly slow I find myself going back to v5. |
The good news is we got a huge speedup from #123, released in v6.1.0. I am not sure where else to look for speed now. I've profiled I'm open to ideas, but perhaps we should open new issues with those ideas? |
This is now fixed in |
We just upgraded to counterfeiter v6 and noticed that our fake generation is taking much longer than before.
Here are the time differences between v5 and v6.0.2 to generate 32 fakes:
v5
v6.0.5
Approximately 30x slower.
In case it is relevant, this is the repo we are using where the fakes are declared and this is an example of how
counterfeiter
is being run:Thanks
Sam & @jamesjoshuahill
The text was updated successfully, but these errors were encountered: