Skip to content

Conversation

@erlend-aasland
Copy link
Contributor

@erlend-aasland erlend-aasland commented Feb 10, 2025

@erlend-aasland erlend-aasland linked an issue Feb 10, 2025 that may be closed by this pull request
@erlend-aasland
Copy link
Contributor Author

cc. @picnixz

@erlend-aasland erlend-aasland added the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Mar 31, 2025
@bedevere-bot

This comment was marked as outdated.

@bedevere-bot bedevere-bot removed the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Mar 31, 2025
@erlend-aasland
Copy link
Contributor Author

The aarch64 fedora buildbot failure is unreleated.

if (!PyUnicode_Check(left) || !PyUnicode_Check(right)) {
return 0;
}
assert(PyUnicode_Check(left));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If left and right are always unicode, could we replace the PyObject_RichCompareBool with a unicode comparison such as PyUnicode_Compare for performance?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They can be subclasses, in which case PyUnicode_Compare won't trigger on custom __eq__ IIRC.

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.

Speed up sqlite3.Row

4 participants