For sure memcmp and similar functions from "string.h" can be implemented in many ways that have much better performance than standard memcpy
memcmp
memcpy