News for hackers. Stuff that matters.
Re:Dart team posts an example of fast code with 22ms for a “... by moonchild on Thursday May 07, 2020 @03:53PM (#23107441)
Probably want -Os (and strip afterwards) if you're interested in startup time. C is also 1ms. C++ has a big cxxrt that zig doesn't. FWIW c++ only takes 2ms on my (quite slow) machine.
Re:Dart team posts an example of fast code with 22ms for a “... by tomtomtom1 on Thursday May 07, 2020 @04:35PM (#23107976)
would ios_base::sync_with_stdio(false); also help?
Re:Dart team posts an example of fast code with 22ms for a “... by moonchild on Thursday May 07, 2020 @07:42PM (#23109704)
In my benchmark, the c++ version uses the c api (printf rather than cout), so it wouldn't make a difference.