1. 14 Nov, 2017 1 commit
    • Christian Hergert's avatar
      gresourcefile: simplify path canonicalization · 38ffcd29
      Christian Hergert authored
      Previously, the path canonicalization for resources had liberal use of
      strlen() and memmove() while walking through the path. This patch avoids
      any secondary strlen() and removes all use of memmove().
      
      A single allocation is created up front as we should only ever need one
      additional byte more than then length of the incoming path string.
      
      To keep the implementation readable, the mechanics are kept in external
      functions. memrchr() was not used due to its lack of portability.
      
      This is faster in every test case I've tested. Paths that contain
      relative ../ have the most speedup.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=790310
      38ffcd29
  2. 29 May, 2017 1 commit
  3. 10 Apr, 2017 1 commit
  4. 12 Oct, 2016 1 commit
  5. 09 Jan, 2016 1 commit
  6. 21 Aug, 2015 2 commits
  7. 31 Jan, 2014 1 commit
  8. 02 Nov, 2012 1 commit
  9. 23 Jun, 2012 1 commit
  10. 22 Jun, 2012 1 commit
  11. 20 Apr, 2012 1 commit
  12. 03 Feb, 2012 1 commit
  13. 15 Jan, 2012 1 commit
  14. 13 Jan, 2012 2 commits