1. 12 Sep, 2015 24 commits
  2. 11 Sep, 2015 8 commits
  3. 10 Sep, 2015 4 commits
  4. 09 Sep, 2015 4 commits
    • Matthias Clasen's avatar
      Optimize gtk_css_node_declaration_has_class · cf0e0875
      Matthias Clasen authored
      This function is getting called a lot. Statistics for the gtk3-demo
      listbox example show most calls with 0-4 classes. Unrolling the cases
      a bit brings the instruction count in callgrind from 93M to 52M.
    • Matthias Clasen's avatar
      More bit manipulation speedups · 59797754
      Matthias Clasen authored
      The same trick that was applied to _gtk_css_change_for_child in
      the previous commit can be applied to _gtk_css_change_for_sibling
      as well, and that is what this commit does.
      With both functions converted, gtk_css_change_translate is no
      longer needed and gets dropped.
    • Matthias Clasen's avatar
      Manipulate bits more efficiently · d7dd6ecc
      Matthias Clasen authored
      The function to translate GtkCssChange enum values to the PARENT
      ones is called very frequently. This patch speeds it up tremendously.
      The callgrind instruction count for this function in the listbox
      demo goes from 108M to 7M.
    • Matthias Clasen's avatar
      match_all: Only allocate an array when needed · a9481cb4
      Matthias Clasen authored
      My statistics show that more than half of all calls end up
      with 0 matches, so we can avoid some overhead by not allocating
      an array at all in this case.