[librsvg: 11/14] Mark PixelRectangle::next() as inline(always)



commit 5132d32ff5026e17c5c952c85e59dd77406563c4
Author: Ivan Molodetskikh <yalterz gmail com>
Date:   Sun Jul 15 14:45:41 2018 +0300

    Mark PixelRectangle::next() as inline(always)
    
    Significantly helps with convolve performance.

 rsvg_internals/src/surface_utils/iterators.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/surface_utils/iterators.rs b/rsvg_internals/src/surface_utils/iterators.rs
index 2f94b317..2f152dd1 100644
--- a/rsvg_internals/src/surface_utils/iterators.rs
+++ b/rsvg_internals/src/surface_utils/iterators.rs
@@ -107,7 +107,7 @@ impl<'a> Iterator for Pixels<'a> {
 impl<'a> Iterator for PixelRectangle<'a> {
     type Item = (i32, i32, Pixel);
 
-    #[inline]
+    #[inline(always)]
     fn next(&mut self) -> Option<Self::Item> {
         // This means we hit the end on the last iteration.
         if self.x == self.rectangle.x1 || self.y == self.rectangle.y1 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]