News for hackers. Stuff that matters.
Re:Transmission torrent client ported to C++ by 10000truths on Sunday September 12, 2021 @06:48PM (#28505758)
What compiler flags did you use? Perhaps -Os would even things out a little more.
Re:Transmission torrent client ported to C++ by usr1106 on Monday September 13, 2021 @01:32AM (#28508130)
Why would anyone want to optimize for space? On a halfway modern PC at least, some really embedded platform might be a different story.
Re:Transmission torrent client ported to C++ by ameixaseca on Monday September 13, 2021 @11:44AM (#28512923)
Cache-friendliness; applies to any platform.

And it's "optimize for size", by the way.

Re:Transmission torrent client ported to C++ by usr1106 on Tuesday September 14, 2021 @02:45AM (#28521163)
Right, in certain cases. But here it's a networking application. So memory accesses won't be your bottleneck.
Re:Transmission torrent client ported to C++ by rwmj on Monday September 13, 2021 @03:27AM (#28508747)
gcc-11.2.1-1.fc35.x86_64 with whatever defaults the upstream project chooses.
Re:Transmission torrent client ported to C++ by junon on Monday September 13, 2021 @05:13AM (#28509259)
Did you run CMake with -DCMAKE_BUILD_TYPE=Release ?
Re:Transmission torrent client ported to C++ by rwmj on Monday September 13, 2021 @07:17AM (#28510039)
No, with -DCMAKE_BUILD_TYPE=RelWithDebInfo
Re:Transmission torrent client ported to C++ by junon on Monday September 13, 2021 @07:25AM (#28510088)
Right, and C++ is definitely going to have more debug info because of longer symbol names.

Test the two with Release instead. That will give you real results.