Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Ambraven :verifinking:​
Ambraven :verifinking:​
@Ambraven@social.mochi.academy  ·  activity timestamp 3 weeks ago

#Cpp

Je sais pas si c'est mon benchmark (probablement) qui est foireux mais...

J'ai une fonction bool f1 (), et une fonction bool f2() { return not f1(); }...

bah f2() est plus rapide tout le temps...

l'autre solution que j'envisage c'est que puisque les deux fonction sont des constexpr inline... le compilateur fait de la magie et il arrive mieux à optimiser f2 for some reason... 🤷

  • Copy link
  • Flag this post
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-alpha.44 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct