gtk2/testsuite/a11y/state
Emmanuele Bassi e259b2f30d Avoid O(n²) walking of string arrays
"Yo, we heard you like traversing NULL-terminated arrays to operate on
them, so we called g_strv_length() as the for condition, so you can
iterate the array while iterating the array."

Instead of making famed rapper and television producer Xzibit proud, we
should avoid calling g_strv_length() on an array while looping on the
array, to avoid quadratic complexity.

We do this in various places that deal with arrays of strings that we
cannot really guess are short enough not to matter — e.g. the list of
CSS selectors in the inspector, or the required authentication
information for printing.
2015-07-16 16:19:55 +01:00
..
focus1.in Add a11y state tests 2014-08-04 09:58:58 +02:00
focus1.out Add a11y state tests 2014-08-04 09:58:58 +02:00
focus1.ui Add a11y state tests 2014-08-04 09:58:58 +02:00
focus2.in Add a11y state tests 2014-08-04 09:58:58 +02:00
focus2.out Add a11y state tests 2014-08-04 09:58:58 +02:00
focus2.ui Add a11y state tests 2014-08-04 09:58:58 +02:00
Makefile.am Skip focus tests in make check 2014-08-10 07:08:39 -04:00
state-record.c Avoid O(n²) walking of string arrays 2015-07-16 16:19:55 +01:00