Somehow in the kdelibs -> framework port the cmake checks for
HAVE_SENDFILE got lost.
That re-enables a massive optimisation in the file kioslave that has all the code existing and used in kdelibs4 that we're currently missing.
dfaure |
Somehow in the kdelibs -> framework port the cmake checks for
HAVE_SENDFILE got lost.
That re-enables a massive optimisation in the file kioslave that has all the code existing and used in kdelibs4 that we're currently missing.
Put a compilation fail inside the #ifdef, before it wasn't triggered, now it is.
Ran unit tests
Moved a file in dolphin
No Linters Available |
No Unit Test Coverage |
Buildable 5183 | |
Build 5201: arc lint + arc unit |
+1 looks good to me.
Chenge #if defined HAVE_SENDFILE to #if HAVE_SENDFILE though, cmakedefine01 will define it always, if I'm not mistaken.
Does this result in a performance improvement? Anything quantifiable I can blog about?
It should be faster.
It'll go from reading a file into a buffer in userspace and writing it back to it all being handled automagically.
I'm not sure you can really blog about it, the code existed since 2003.
Nice catch.
... and catching this is the whole reason for #if instead of #ifdef ... too bad this one was still using ifdef (if defined).