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

Bitset improvements and more bitset usage #2607

Merged
merged 18 commits into from
May 14, 2024
Merged

Conversation

szhorvat
Copy link
Member

No description provided.

Copy link

codecov bot commented May 12, 2024

Codecov Report

Attention: Patch coverage is 97.82609% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 84.30%. Comparing base (2f5179c) to head (87f264c).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2607      +/-   ##
==========================================
- Coverage   84.31%   84.30%   -0.01%     
==========================================
  Files         379      379              
  Lines       61951    61932      -19     
  Branches    12137    12136       -1     
==========================================
- Hits        52232    52213      -19     
  Misses       9719     9719              
Files Coverage Δ
src/community/voronoi.c 86.47% <100.00%> (ø)
src/connectivity/components.c 95.34% <100.00%> (-0.06%) ⬇️
src/core/bitset.c 82.78% <100.00%> (+0.58%) ⬆️
src/flow/st-cuts.c 97.32% <100.00%> (-0.02%) ⬇️
src/graph/adjlist.c 91.93% <100.00%> (ø)
src/misc/spanning_trees.c 97.33% <100.00%> (-0.14%) ⬇️
src/paths/bellman_ford.c 90.09% <100.00%> (ø)
src/paths/eulerian.c 96.78% <100.00%> (ø)
src/paths/sparsifier.c 98.05% <100.00%> (ø)
src/properties/trees.c 94.71% <100.00%> (ø)
... and 2 more

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2f5179c...87f264c. Read the comment docs.

@szhorvat szhorvat requested a review from ntamas May 12, 2024 15:00
@szhorvat
Copy link
Member Author

@Tagl Can you review this please?

@szhorvat
Copy link
Member Author

The failure on Travis is real. Something might be wrong with bitsets on s390x. This needs to be checked before merging.

@szhorvat szhorvat marked this pull request as ready for review May 12, 2024 18:40
@szhorvat
Copy link
Member Author

It's fixed now, it was a silly mistake on my part.

Copy link
Contributor

@Tagl Tagl left a comment

Choose a reason for hiding this comment

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

Looks good as far as I can tell. Have you benchmarked anything yet?

@szhorvat
Copy link
Member Author

Looks good as far as I can tell. Have you benchmarked anything yet?

I benchmarked several functions, and none of them show a noticeable change in performance. I'll consider that a win, as memory usage has been reduced, sometimes considerably.

@Tagl
Copy link
Contributor

Tagl commented May 12, 2024

Looks good as far as I can tell. Have you benchmarked anything yet?

I benchmarked several functions, and none of them show a noticeable change in performance. I'll consider that a win, as memory usage has been reduced, sometimes considerably.

That makes sense and absolutely it is a win. Some of functions changed can probably be improved upon furhter by utilizing bitmasks in some way and then a speed increase will be noticeable. But this is already good!

@ntamas ntamas merged commit f415a4d into master May 14, 2024
38 checks passed
@ntamas ntamas deleted the feat/bitset-improvements branch May 14, 2024 12:13
@ntamas
Copy link
Member

ntamas commented May 14, 2024

Thanks!

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.

None yet

3 participants