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

Improve the code readability of Roaring64Map::printf() and Roaring64Map::toString() #399

Merged
merged 1 commit into from
Nov 9, 2022

Conversation

kosak
Copy link
Contributor

@kosak kosak commented Nov 7, 2022

Improve the readability of the implementations of Roaring64Map::printf() and Roaring64Map::toString(). Additionally provide a public printToSink() member so that callers can stream to their own custom sinks. Also add some unit tests. The functionality is unchanged.

@kosak kosak force-pushed the kosak_improve-printf branch from 1a322bc to 7a27533 Compare November 8, 2022 01:52
tests/cpp_unit.cpp Outdated Show resolved Hide resolved
cpp/roaring64map.hh Outdated Show resolved Hide resolved
cpp/roaring64map.hh Outdated Show resolved Hide resolved
@kosak kosak force-pushed the kosak_improve-printf branch from bc11d6a to adc754c Compare November 8, 2022 23:50
@lemire
Copy link
Member

lemire commented Nov 9, 2022

I am going to merge this. Obviously we can improve the implementation, and it is possible that the new code is slower. However, if we are concerned about it, then it should be handled by a separate PR (since we don't even have benchmarks for those functions).

@lemire lemire merged commit cea238c into RoaringBitmap:master Nov 9, 2022
@kosak kosak deleted the kosak_improve-printf branch November 9, 2022 03:42
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.

3 participants