FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-44165: optimise sqlite3 statement preparation by passing string size by erlend-aasland · Pull Request #26206 · python/cpython · GitHub

/ cpython Public

bpo-44165: optimise sqlite3 statement preparation by passing string size - #26206

Merged
pablogsal merged 5 commits into
python:mainfrom
erlend-aasland:sqlite-prepare
Jun 2, 2021
Merged

bpo-44165: optimise sqlite3 statement preparation by passing string size#26206
pablogsal merged 5 commits into
python:mainfrom
erlend-aasland:sqlite-prepare

Conversation

erlend-aasland commented May 18, 2021
edited
Loading

Copy link
Copy Markdown
Contributor

Quoting the SQLite docs, https://sqlite.org/c3ref/prepare.html:
"If the caller knows that the supplied string is nul-terminated, then
there is a small performance advantage to passing an nByte parameter
that is the number of bytes in the input string including the
nul-terminator."

https://bugs.python.org/issue44165

Copy link
Copy Markdown
Contributor Author

@pablogsal I recon this can pass as skip news. This is an internal micro-optimisation only. No user visible change.

Comment thread Modules/_sqlite/statement.c Outdated
Comment thread Modules/_sqlite/cursor.c Outdated
Comment thread Modules/_sqlite/cursor.c
erlend-aasland deleted the sqlite-prepare branch June 2, 2021 12:30
python deleted a comment from bedevere-bot Jun 2, 2021
python deleted a comment from bedevere-bot Jun 2, 2021

Copy link
Copy Markdown
Contributor Author

This PR was broken by fffa0f9. I'll resolve the issues in a new PR.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL