bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=4ad9081c81eefacc5b79738561017042371b137f

commit 4ad9081c81eefacc5b79738561017042371b137f
Author: Marcel Hollerbach <[email protected]>
Date:   Tue Mar 24 20:10:39 2020 +0100

    eo: use eina_prefetch
    
    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 <[email protected]>
    Differential Revision: https://phab.enlightenment.org/D11593
---
 src/lib/eo/eo.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 499a4800d1..23a6b35ba0 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -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

-- 


Reply via email to