|
|
|
|
|
by tptacek
5002 days ago
|
|
The opposite is often true. The right abstractions can provide a performance benefit, when they force programs to conform to constructs that are easily expressed in performant native code. The standard C library is full of functions that are slower than equivalent functionality in higher level languages. Or do you think ticking through arrays of hopefully-ASCII bytes, byte by byte, waiting for the 0 byte, is the fastest way to compare two strings? |
|
I'm sure you must know this, but this is not even remotely how strcmp() is implemented in modern libc's.