HUGE performance enhancement for global_replace()

Bug #491708 reported by Daniel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mocker
Fix Released
Undecided
Gustavo Niemeyer

Bug Description

While profiling my tests (they were taking too long to run) the profiler showed that dict.items() was taking a lot if time in the slowest tests. Incidentally mocker's global_replace() function calls referrer.items(), which was causing the problem in my case. When I changed that to referrer.iteritems() the performance of my test runs increased by nearly 200%.

Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

That's fixed in trunk for a while, but unreleased unfortunately. Will be out in the next release in a moment.

Changed in mocker:
assignee: nobody → Gustavo Niemeyer (niemeyer)
status: New → Fix Committed
Changed in mocker:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.