Uh oh!
There was an error while loading. Please reload this page.
bpo-43258: Prevent needless allocation of sqlite3 aggregate context for empty queries - #24569
Conversation
erlend-aasland
commented
Feb 18, 2021
@berkerpeksag If you don't mind, I'd like to create a follow-up PR for this issue:
Code coverage is close to 100% for the final callback, so a refactor should be pretty safe. |
berkerpeksag
commented
Feb 19, 2021
This sounds good to me.
I'm not sure about this one. Can you send an inline diff? The function is quite short so I don't see a net gain from a quick look at it. |
berkerpeksag
commented
Feb 19, 2021
Thank you! |
erlend-aasland
commented
Feb 19, 2021
Thanks for reviewing, @berkerpeksag!
There's a lot of such scoping "errors" in the sqlite3 module. I'm thinking of fixing all in one fairly large PR. I'll make these two static for now.
Sure! Here it is. Try it out. I believe it's worth it wrt. future maintenance. |
berkerpeksag
commented
Feb 19, 2021
Sorry, it's pretty much of a rewrite of a pretty short function :) IMO, not worth the code churn. If we ever need to rewrite these functions, it might make sense to do it this way. For now, I prefer keeping it as is. |
erlend-aasland
commented
Feb 19, 2021
I'm not giving up; I'll try to sneak it in later ;) |
https://bugs.python.org/issue43258