GNOME Bugzilla – Bug 743962
grey: Use memcpy instead of a loop
Last modified: 2015-05-23 20:46:06 UTC
The gegl:grey operation copies the input buffer to the output. I would expect memcpy to be faster than a hand-written loop because the C library would have several optimized implementations depending on the CPU. We already use memcpy for similar purposes in other operations (eg., gegl:red-eye-removal), so let's use it here too.
Created attachment 296069 [details] [review] operations/common/grey: Use memcpy instead of a loop
Created attachment 296071 [details] [review] operations/common/grey: Use memcpy instead of a loop Include string.h
commit bc1429126065ceb84a7a7ee98d521971ec87cb43 Author: Debarshi Ray <debarshir@gnome.org> Date: Wed Feb 4 08:41:04 2015 +0100 operations/common/grey: Use memcpy instead of a loop https://bugzilla.gnome.org/show_bug.cgi?id=743962