python / python/cpython

Speed up sqlite3.Row

Open
#129,926 0 comments 1 reaction 1 assignee View on GitHub

@erlend-aasland is already working on this.

Since Feb 10, 2025.

  • #129927 by @erlend-aasland — open
extension-modules performance topic-sqlite3 type-feature
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

Feature or enhancement

Proposal:

We can speed up sqlite.Row subscripting a bit:

  • in pysqlite_row_subscript, after finding the correct index, use fast tuple API to access data
  • in equal_ignore_case, we can simply assert that we are given two unicode objects
Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs
  • gh-129927

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.