gtk/modules/printbackends/cups
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
..
gtkcupssecretsutils.c Avoid O(n²) walking of string arrays 2015-07-16 16:19:55 +01:00
gtkcupssecretsutils.h Use secrets service for cups auth_info 2014-09-01 22:39:51 +02:00
gtkcupsutils.c printing: Check connection to remote CUPS server on correct port 2015-05-13 12:28:49 +02:00
gtkcupsutils.h printing: Check connection to remote CUPS server on correct port 2015-05-13 12:28:49 +02:00
gtkprintbackendcups.c printing: Get output bin via IPP 2015-06-23 13:36:57 +02:00
gtkprintbackendcups.h Change FSF Address 2012-02-27 17:06:11 +00:00
gtkprintercups.c printing: Get output bin via IPP 2015-06-23 13:36:57 +02:00
gtkprintercups.h printing: Get output bin via IPP 2015-06-23 13:36:57 +02:00
Makefile.am build: Set no_undefined in Makefile.decl 2014-09-15 16:35:40 +02:00