Hello:

I did some quick benchmarks, having to do with qualifying pointers local to 
gegl-sampler-yafr.c and gegl-sampler-linear.c with the restrict keyword.

The upshoot:

Speed wise, this makes not difference.

Comments:

These functions are fairly simple, so it could be that gcc can untangle 
aliasing, since there is not much opportunity for it.

When pointers are dealing with "stripes," separating them into different 
pointers may lead to more benefit when using the restrict keyword.

It could be that more globally defined pointers benefit more from the restrict 
keyword.

But I am starting to suspect that const has more likely impact on speed than 
restrict.

Nicolas Robidoux
Laurentian University/Universite Laurentienne
_______________________________________________
Gegl-developer mailing list
[email protected]
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer

Reply via email to