This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository efl.

View the commit online.

commit 307a8aeaeb440ca25eeb299f2fbc99083f9b569b
Author: Cedric BAIL <[email protected]>
AuthorDate: Sun Nov 15 20:40:45 2026 -0600

    elementary: exact_model: stop the widest-row scan at the old width
    
    When every row is as wide, each removal of one of them expanded every
    block to look for the widest. The width of the row that left is the most
    there was, so the first row found that is as wide ends the search, and
    when the rows that are left are alike nothing but the first block is
    expanded.
    
    This is not a measurable speedup of a removal at the sizes the tests
    use: 2100 rows removed from the front, every third one measured, take
    about 740 ms with or without it (plain build, same machine, three runs
    each), as shifting the sizes of the rows at each removal costs far more
    than the scan. The test checks the total width after each of those
    removals.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 src/lib/elementary/efl_ui_exact_model.c | 2 +-
 src/tests/elementary/efl_ui_model.c     | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/lib/elementary/efl_ui_exact_model.c b/src/lib/elementary/efl_ui_exact_model.c
index 4a206b67c8..a041597ebe 100644
--- a/src/lib/elementary/efl_ui_exact_model.c
+++ b/src/lib/elementary/efl_ui_exact_model.c
@@ -616,7 +616,7 @@ _efl_ui_exact_model_shift(Efl_Ui_Exact_Model_Data *root, unsigned int index, Ein
         if ((w & EFL_UI_EXACT_MODEL_MEASURED) &&
             (w & ~EFL_UI_EXACT_MODEL_MEASURED) >= root->total_size.width)
           root->total_size.width = _efl_ui_exact_model_width_max(root->compressed.width,
-                                          root->total_size.width);
+                                                                 root->total_size.width);
      }
 }
 
diff --git a/src/tests/elementary/efl_ui_model.c b/src/tests/elementary/efl_ui_model.c
index bc88a10549..702c444773 100644
--- a/src/tests/elementary/efl_ui_model.c
+++ b/src/tests/elementary/efl_ui_model.c
@@ -1194,8 +1194,7 @@ EFL_START_TEST(efl_ui_exact_model_remove_widest_alike)
    unsigned int i;
 
    for (i = 0; i < 2100; i += 3)
-     efl_future_then(sr->cur[i], efl_model_property_set(sr->cur[i], "self.width",
-                                                         eina_value_uint_new(60)));
+     _uint_set(sr->cur[i], "self.width", 60);
    ck_assert_uint_eq(_property_uint_expected(sr->model, "total.width"), 60);
    // (every third row is measured: the last of them is the row 2097)
    for (i = 0; i < 2100; i++)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to