d1a19bcb7f
View validation accounts for a fair cost of module installation, most of that is spent checking for view validity, and a significant fraction of *that* is spent reading the validated view from the DB. Turns out _check_xml requested *all* view fields even though it needed none of them save for the arch. Specifying fields to read_combined rather than fetching all fields seems to result in a ~30% speedup of _check_xml (under line_profiler). Most of the rest is spent fetching sub-views (in get_inheriting_view_arch), I don't know that it can be improved without hand-crafting a fairly complex SQL request. |
||
---|---|---|
.. | ||
base | ||
test_access_rights | ||
test_convert | ||
test_converter | ||
test_documentation_examples | ||
test_exceptions | ||
test_impex | ||
test_inherit | ||
test_inherits | ||
test_limits | ||
test_new_api | ||
test_uninstall | ||
test_workflow | ||
__init__.py |