• Emmanuele Bassi's avatar
    Avoid O(n²) walking of string arrays · e259b2f3
    Emmanuele Bassi authored
    "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.
    e259b2f3
Name
Last commit
Last update
..
state Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
a11ychildren.test.in Loading commit data...
a11yderive.test.in Loading commit data...
a11ymisc.test.in Loading commit data...
a11ytests.test.in Loading commit data...
a11ytext.test.in Loading commit data...
a11ytree.test.in Loading commit data...
a11yutil.test.in Loading commit data...
a11yvalue.test.in Loading commit data...
about.txt Loading commit data...
about.ui Loading commit data...
accessibile-name.txt Loading commit data...
accessibility-dump.c Loading commit data...
accessible-name.txt Loading commit data...
accessible-name.ui Loading commit data...
actionbar.txt Loading commit data...
actionbar.ui Loading commit data...
assistant.txt Loading commit data...
assistant.ui Loading commit data...
buttons.txt Loading commit data...
buttons.ui Loading commit data...
calendar.txt Loading commit data...
calendar.ui Loading commit data...
children.c Loading commit data...
colorchooser.txt Loading commit data...
colorchooser.ui Loading commit data...
combos.txt Loading commit data...
combos.ui Loading commit data...
derive.c Loading commit data...
entries.txt Loading commit data...
entries.ui Loading commit data...
expander.txt Loading commit data...
expander.ui Loading commit data...
headerbar.txt Loading commit data...
headerbar.ui Loading commit data...
hello-world.txt Loading commit data...
hello-world.ui Loading commit data...
iconview.txt Loading commit data...
iconview.ui Loading commit data...
infobar.txt Loading commit data...
infobar.ui Loading commit data...
label.txt Loading commit data...
label.ui Loading commit data...
link.txt Loading commit data...
link.ui Loading commit data...
listbox.txt Loading commit data...
listbox.ui Loading commit data...
lockbutton.txt Loading commit data...
lockbutton.ui Loading commit data...
menu.txt Loading commit data...
menu.ui Loading commit data...
menubutton.txt Loading commit data...
menubutton.ui Loading commit data...
menubutton2.txt Loading commit data...
menubutton2.ui Loading commit data...
menubutton3.txt Loading commit data...
menubutton3.ui Loading commit data...
menus.txt Loading commit data...
menus.ui Loading commit data...
messagedialog.txt Loading commit data...
messagedialog.ui Loading commit data...
misc.c Loading commit data...
mnemonic.txt Loading commit data...
mnemonic.ui Loading commit data...
notebook.txt Loading commit data...
notebook.ui Loading commit data...
paned.txt Loading commit data...
paned.ui Loading commit data...
pickers.txt Loading commit data...
pickers.ui Loading commit data...
placeholder-text.txt Loading commit data...
placeholder-text.ui Loading commit data...
progress.txt Loading commit data...
progress.ui Loading commit data...
range.txt Loading commit data...
range.ui Loading commit data...
scale-drawvalue.txt Loading commit data...
scale-drawvalue.ui Loading commit data...
spinner.txt Loading commit data...
spinner.ui Loading commit data...
stack.txt Loading commit data...
stack.ui Loading commit data...
statusbar.txt Loading commit data...
statusbar.ui Loading commit data...
testfocus.c Loading commit data...
text.c Loading commit data...
text.txt Loading commit data...
text.ui Loading commit data...
tooltips.txt Loading commit data...
tooltips.ui Loading commit data...
tree-performance.c Loading commit data...
tree-relationships.c Loading commit data...
tree.txt Loading commit data...
tree.ui Loading commit data...
util.c Loading commit data...
value.c Loading commit data...