GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — bpo-42862: Use functools.lru_cache iso. _sqlite.Cache in sqlite3 module by erlend-aasland · Pull Request #24203 · python/cpython Conversation
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
9fa24b1 to
8f8694a
Compare
|
@rhettinger Would you mind reviewing the use of |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
2cceb7f to
ec6485f
Compare
6cf36b2 to
c79c3a9
Compare
|
FYI @berkerpeksag, I've rebased onto |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
c79c3a9 to
3d85a78
Compare
3d85a78 to
e8478cf
Compare
There was an error while loading. Please reload this page.
|
Rebased onto master to resolve conflicts. Also added a tiny optimisation: increase the default cache size from 100 to 128. I'm guessing it is way to late to get this into 3.10 now :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
6ceadcd to
c561bab
Compare
c561bab to
18a030c
Compare
|
@pablogsal, two questions:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Unless you are changing the module itself, is not very relevant, but you are always free to ask for his advice :)
That seems like some genuine problem. Maybe @vstinner has seen this before? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Be careful with static globals as this is not subinterpreter-friendly. @vstinner or @ericsnowcurrently can explain further.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Currently, there's no module state in sqlite3. Converting the sqlite3 state to heap types has been the first step on the path to sqlite3 multi-phase initialisation and module state. I can use this PR to establish a static global state, and put _lru_cache there.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I added a global state struct and put _lru_cache there. I can add the rest of the static data to it in a separate PR. One step closer to multi-phase init and sub-interpreter support.
See bb186dca837c805cf5d78ae7675d8a43a0b217cd
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
When you are done with the fixes, could you test with the buildbots using the buildbot label? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
6337da4 to
a95a386
Compare
|
I messed up the previous merge so I had to rebase and force push. Sorry 'bout the mess. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@erlend-aasland is this still a draft (I assume not)? :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Nope, I was waiting for the CI, just to be sure :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Great job @erlend-aasland! 🎉 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks, Pablo! 😃 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.