LWN.net Logo

Sobotka: Why GIMP is inadequate

Sobotka: Why GIMP is inadequate

Posted Jan 14, 2011 13:59 UTC (Fri) by dwmw2 (subscriber, #2063)
In reply to: Sobotka: Why GIMP is inadequate by HelloWorld
Parent article: Sobotka: Why GIMP is inadequate

Unconditional branches aren't so hard to predict, FWIW.


(Log in to post comments)

Sobotka: Why GIMP is inadequate

Posted Jan 16, 2011 21:11 UTC (Sun) by cmccabe (guest, #60281) [Link]

I wrote a little test, and apparently std::sort *is* faster than qsort, at least at sorting an array of 4 million ints. My CPU is an AMD Phenom(tm) II X4 820.

In my opinion, templates are the best feature of C++. They're really the *only* feature I miss in C-land. You can use macros to accomplish the same thing in C. I vaguely remember that the BSD kernel has a header file implementing qsort-as-a-macro. However, it's less convenient.

Sobotka: Why GIMP is inadequate

Posted Jan 17, 2011 1:11 UTC (Mon) by jthill (guest, #56558) [Link]

Glad to see somebody else sees them that way. The don't have to be all verbose and complicated, and if you collect the machinery they implement together in one spot and get the formatting right they can make things very much clearer.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds