Skip to content

Conversation

@dkropachev
Copy link

@dkropachev dkropachev commented Aug 15, 2025

This PR cleanups tablets code to reduce tablet memory and CPU footprint.
And couple of nearly cosmetic changes.

  1. Removes unused fields: tabletId, keyspace, table
  2. Changes class name in the toString
  3. Reuses tabletSet

It is unused and not going to be used, only occupy memory and eats CPU
on hash calculation
Keyspace and table name are not used.
It only occupie memory and CPU on hash calculation.
At not point tablet from one table/keyspace is compared to a tablet from
another table/keyspace.
Purely cosmetic, it is not used anywhere.
Second .get on mapping is not necessary.
@dkropachev dkropachev requested a review from Bouncheck August 15, 2025 19:45
@dkropachev dkropachev self-assigned this Aug 15, 2025
Copy link

@Bouncheck Bouncheck left a comment

Choose a reason for hiding this comment

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

LGTM, although my IDE for some reason cannot find usages of toString properly and highlights a bunch of unrelated function calls.
If there are any just note that the keyspace will not be logged anymore.

@dkropachev dkropachev merged commit 89a2f42 into scylladb:scylla-3.x Aug 18, 2025
11 checks passed
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