3 ms·
Coming from python/js I found it to be high. Mostly because of the memory management/ making sure I call free correctly etc. In many cases where I would plow
by darepublic 7y ago
Coming from python/js I found it to be high. Mostly because of the memory management/ making sure I call free correctly etc. In many cases where I would plow ahead in programming, with C I had to stop and would feel dread. A lifesaver for me was using C/C++ Repl environments where I could quickly prototype or sanity check things I was doing.
- pantalaimon 7y agoThe trick is to just not use `malloc()` and `free()` unless absolutely necessary ;)
- throw_m239339 7y ago> The trick is to just not use `malloc()` and `free()` unless absolutely necessary ;) The problem is that often C programmers have to deal with API and libraries they didn't write themselves to solve their problems, thus are forced to use constructors and destructors even when they don't want to.