ZSQLCatalog: optimize rendering of values
Showing
-
Owner
I see you committed profiler-related stuff before this. Was this code a hot-spot ? How much improvement can we expect ?
-
Owner
For SQL queries with a condition on many security_uids, you can certainly get measurable improvement. In my case, I am trying to optimize a request that took ~20 seconds with cProfile enabled, calling OperatorBase._renderValue 243266 times: 7.22% of total time, 4.7% self. With this commit, total time is now 4.01%, 2.89 self.
Unfortunately, the instance runs on a CPU whose speed is so unstable that I can't give better stats (even % above should be taken with care). On a unit test instance with much fewer security_uid, speed up is less significant (about 1%).
Please register or sign in to comment