Skip to content
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

A faster branchless countDigits #44518

Closed
wants to merge 1 commit into from

Conversation

zbtzbtzbt
Copy link
Contributor

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

A faster branchless countDigits

Information about CI checks: https://clickhouse.com/docs/en/development/continuous-integration/

@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-improvement Pull request with some product improvements label Dec 22, 2022
@nickitat nickitat added the can be tested Allows running workflows for external contributors label Dec 22, 2022
@nickitat nickitat self-assigned this Dec 22, 2022
@alexey-milovidov
Copy link
Member

A test for this function has failed, indicating a change in behavior.

@alexey-milovidov
Copy link
Member

A branchful version can be faster: https://github.com/ClickHouse/ClickHouse/blob/master/base/base/itoa.h#L315

@alexey-milovidov alexey-milovidov self-assigned this Dec 23, 2022
@zbtzbtzbt
Copy link
Contributor Author

Should we remove countDigits current division version?use this if version

A branchful version can be faster: https://github.com/ClickHouse/ClickHouse/blob/master/base/base/itoa.h#L315

@alexey-milovidov
Copy link
Member

Yes, it should be better.

@alexey-milovidov
Copy link
Member

Continued in #46187.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can be tested Allows running workflows for external contributors pr-improvement Pull request with some product improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants