Open jovanmaric opened 5 years ago
Faced this issue too. At first glance, I think this changes probably cause this slowdown (since there were no other global changes in slower version).
Ran into the same issue today, specs slowing down from 5 to 13 minutes.
I managed to resolve it with a little patch, might be useful for somebody else:
module JsonMatchers
class Matcher
def initialize(schema_path)
@schema_path = schema_path
# prevent reloading document_store for every instance, ref: https://github.com/thoughtbot/json_matchers/issues/101
@@document_store ||= build_and_populate_document_store
@document_store = @@document_store
end
end
end
After updating from
0.10.0
to0.11.1
I noticed my specs slowing down from 1 minute to 1.5 minutes. I've done some profiling to verify this:0.10.0 - rubyprof
0.11.1 - rubyprof
I do not have any other projects with over 1000 examples to test this on unfortunately. I've looked at the changes from
0.10.0
and i'm not entirely sure what is causing this.Has anyone noticed any slowdown as well?