eo: use eina_prefetch
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Tue, 24 Mar 2020 19:10:39 +0000 (20:10 +0100)
committerJongmin Lee <jm105.lee@samsung.com>
Sun, 5 Apr 2020 21:33:58 +0000 (06:33 +0900)
we should prefetch the func pointer here.
Later on we are accessing the func pointer in a streak, after that, we
do not use it anymore.

Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D11593

src/lib/eo/eo.c

index be6d263..93a9e54 100644 (file)
@@ -577,6 +577,7 @@ obj_super_back:
    else
      {
         func = _vtable_func_get(vtable, op);
+        EINA_PREFETCH_NOCACHE(func);
         // this is not very likely to happen - but may if its an invalid
         // call or a composite object, but either way, it's not very likely
         // so make it a goto to save on instruction cache