Skip to content

spacetimedb_execution: avoid get_row_ref#2806

Merged
Centril merged 1 commit into
masterfrom
centril/execution-without_get_row_ref
Jun 4, 2025
Merged

spacetimedb_execution: avoid get_row_ref#2806
Centril merged 1 commit into
masterfrom
centril/execution-without_get_row_ref

Conversation

@Centril

@Centril Centril commented May 28, 2025

Copy link
Copy Markdown
Contributor

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 Can land in any release window. Will not block a release deployment. 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

@gefjon gefjon left a comment

Copy link
Copy Markdown
Contributor

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 Can land in any release window. Will not block a release deployment.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants