You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While doing some profiling the performance issue since to come from parsing the config declaration (load_core_declaration) each time we unload() every plugin.
Using the fixture generates 20 millon extra function calls (probably builtins.next). It also points to update_config and plugins_update consuming 13 seconds (of the total 17)
While navigating with snakeviz:
The text was updated successfully, but these errors were encountered:
CKAN version
master, 2.10
Describe the bug
Using
with_plugins
fixture kills test performance.Steps to reproduce
1.5 sec
including loading time)3.15sec
including loading time)When running more tests:
This runs in
6 passed in 5.25s
Adding
with_plugins
:6 passed in 13.67s
Expected behavior
A similar running time than 2.9?
Additional details
While doing some profiling the performance issue since to come from parsing the config declaration (
load_core_declaration
) each time weunload()
every plugin.Profiling without the fixture
Profiling with the fixture
Using the fixture generates 20 millon extra function calls (probably
builtins.next
). It also points toupdate_config
andplugins_update
consuming 13 seconds (of the total 17)While navigating with snakeviz:
The text was updated successfully, but these errors were encountered: