[librsvg: 11/14] Mark PixelRectangle::next() as inline(always)
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 11/14] Mark PixelRectangle::next() as inline(always)
- Date: Sun, 15 Jul 2018 17:56:16 +0000 (UTC)
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]