Skip to content

postfix(pag): Incorrect calculation of last used page when database contains only one PIP#8949

Open
TreeHunter9 wants to merge 2 commits intoFirebirdSQL:masterfrom
TreeHunter9:master-last-used-page-postfix
Open

postfix(pag): Incorrect calculation of last used page when database contains only one PIP#8949
TreeHunter9 wants to merge 2 commits intoFirebirdSQL:masterfrom
TreeHunter9:master-last-used-page-postfix

Conversation

@TreeHunter9
Copy link
Contributor

@TreeHunter9 TreeHunter9 commented Mar 23, 2026

Postfix after #8772.

@aafemt
Copy link
Contributor

aafemt commented Mar 23, 2026

Because this PR is for master and master has C++20 enabled, consider using std::countl_zero in the loop above.

@TreeHunter9
Copy link
Contributor Author

Because this PR is for master and master has C++20 enabled, consider using std::countl_zero in the loop above.

I don't like the idea of adding some changes that doesn't belong to initial patch intent, especially when it comes to postfix patches, besides, this patch should be backported to v5.

But the idea of using std::countl_zero is good overall, however, it seems that we won't see any difference in performance as it is not a "hot" function.

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