Skip to content

spacetimedb_execution: avoid get_row_ref #2806

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2025

Conversation

Centril
Copy link
Contributor

@Centril Centril commented May 28, 2025

Description of Changes

Avoid all Table::get_row_refs, in spacetimedb_execution, as they are not free (as noticed in flamegraphs).
Instead, simplify the code with TableAndIndex and gain in performance.

API and ABI breaking changes

None

Expected complexity level and risk

Fairly self-contained and mostly simplifying.
There are two trivial new instances of unsafe.

Testing

Covered by existing tests.

@Centril Centril requested a review from joshua-spacetime May 28, 2025 16:16
@bfops bfops added release-any To be landed in any release window performance A PR/Issue related to improving performance of stdb labels Jun 3, 2025
@Centril Centril requested a review from gefjon June 4, 2025 14:28
Copy link
Contributor

@gefjon gefjon left a comment

Choose a reason for hiding this comment

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

Seems simple enough.

@Centril Centril added this pull request to the merge queue Jun 4, 2025
Merged via the queue into master with commit ad39b7b Jun 4, 2025
23 checks passed
@Centril Centril deleted the centril/execution-without_get_row_ref branch June 4, 2025 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance A PR/Issue related to improving performance of stdb release-any To be landed in any release window
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants