Skip to content

Minor optimizations#78

Merged
partiallywritten merged 8 commits intomainfrom
Itz-fork-optim-1
Mar 9, 2026
Merged

Minor optimizations#78
partiallywritten merged 8 commits intomainfrom
Itz-fork-optim-1

Conversation

@partiallywritten
Copy link
Copy Markdown
Owner

@partiallywritten partiallywritten commented Mar 9, 2026

performance = tomfoolery with bit of bullshitting
Copilot AI review requested due to automatic review settings March 9, 2026 15:53
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a micro-optimization to the MongoDB helper by adding __slots__ to the CypherDB class, aiming to reduce per-instance overhead and slightly speed up attribute access in this frequently referenced helper.

Changes:

  • Add __slots__ to CypherDB to restrict instance attributes to mongoc and coll_users.
  • Add inline commentary explaining (informally) the motivation for the change.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@partiallywritten partiallywritten merged commit b7a66d8 into main Mar 9, 2026
2 checks passed
@partiallywritten partiallywritten deleted the Itz-fork-optim-1 branch March 9, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants