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

perf: perfect forwarding #45

Merged
merged 4 commits into from
Jul 30, 2023
Merged

perf: perfect forwarding #45

merged 4 commits into from
Jul 30, 2023

Conversation

bobluppes
Copy link
Owner

@bobluppes bobluppes commented Jul 30, 2023

I did not measure any significant performance improvement when building in release mode. I expect the compiler is able to optimize the redundant move construction. Nevertheless, I think perfect forwarding is still a nice to have.

add vertex benchmarks

vertex

add edge benchmarks

edge

@codecov
Copy link

codecov bot commented Jul 30, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (9fdce58) 99.70% compared to head (debf065) 99.70%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #45   +/-   ##
=======================================
  Coverage   99.70%   99.70%           
=======================================
  Files          22       22           
  Lines        1025     1025           
=======================================
  Hits         1022     1022           
  Misses          3        3           
Files Changed Coverage Δ
include/graaflib/graph.h 100.00% <ø> (ø)
include/graaflib/graph.tpp 100.00% <100.00%> (ø)
test/graaflib/io/dot_test.cpp 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bobluppes bobluppes force-pushed the perfect-forwarding branch from ea30c5d to debf065 Compare July 30, 2023 15:32
@bobluppes bobluppes marked this pull request as ready for review July 30, 2023 15:32
@bobluppes bobluppes merged commit 5bea606 into main Jul 30, 2023
@bobluppes bobluppes deleted the perfect-forwarding branch July 30, 2023 15:43
@bobluppes bobluppes added the refactor A change which does not change any behavior label Aug 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor A change which does not change any behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant