Skip to content

Conversation

@dyemanov
Copy link
Member

  • Improve bounds checking (make it compile-time using class enum)
  • Simplify retrieval of the counters (using operator[])
  • Make it easier to extend internally, especially adding grouped counters (per-tablespace page I/O counters, temp I/O counters, etc)

@dyemanov dyemanov self-assigned this Sep 21, 2025
// Runtime statistics class
// Runtime statistics

enum class PageStatType
Copy link
Member

Choose a reason for hiding this comment

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

Should these two enuns be int-based or could use a underlying smaller type?

Copy link
Member Author

Choose a reason for hiding this comment

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

Given that we don't store it anywhere and it's always passed through stack, I think the default int is OK.

@dyemanov dyemanov merged commit 9b651f2 into master Sep 25, 2025
46 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