Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ and copying

Name: Anonymous 2013-06-13 5:34

Why the fuck does everything in C++ insist on endlessly copying shit here and there, spawning 4 (FOUR!!!) copies of some fucking object during certain calls to methods of stdlib containers (vector, tuple etc).

I can't create a fucking thread without it copying my ``functor'' object (with operator()) at least twice for some fucking reason.

So yeah, if you want fast C++ programs, you fucking write them in C, with manual handling of pointers and shit.  Fuck C++.

Name: Anonymous 2013-06-14 20:24

>>31
copies everything by default
Because C/C++ has no garbage collector, so the only way to maintain ownership is by copying crap into a parent stack frame.

C/C++ also has long shutdown times, because of a lot of free calls in destructors and malloc managing scheme being inherently inefficient.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List