1. 19 Dec, 2016 1 commit
  2. 18 Dec, 2016 1 commit
  3. 15 Dec, 2016 5 commits
  4. 13 Sep, 2016 1 commit
  5. 29 Aug, 2016 2 commits
  6. 07 Aug, 2016 2 commits
    • Benno Schulenberg's avatar
      86a64b1b
    • Benno Schulenberg's avatar
      chars: make searching case-insensitively some ten percent faster · c8bc05b1
      Benno Schulenberg authored
      It is quicker to do a handful of superfluous compares at the end of
      each line than it is to compute and keep track of and compare the
      remaining line length the whole time.
      
      The typical line is some sixty characters long, the typical search
      string ten characters -- with a shorter search string the speedup is
      even higher: some fifteen percent.  Only when the string is longer
      than half the average line length does searching become slower with
      this new method.
      
      All this for a UTF-8 locale.  For a C locale it makes no difference.
      c8bc05b1
  7. 06 Aug, 2016 3 commits
  8. 05 Aug, 2016 1 commit
  9. 04 Aug, 2016 2 commits
  10. 03 Aug, 2016 1 commit
  11. 01 Aug, 2016 1 commit
  12. 22 Jul, 2016 1 commit
  13. 21 Jul, 2016 1 commit
  14. 13 Jul, 2016 1 commit
  15. 12 Jul, 2016 2 commits
  16. 30 Jun, 2016 2 commits
  17. 29 Jun, 2016 4 commits
  18. 27 Jun, 2016 2 commits
  19. 01 Jun, 2016 5 commits
  20. 30 May, 2016 1 commit
  21. 27 May, 2016 1 commit
    • Benno Schulenberg's avatar
      chars: make comparing multibyte strings twice as fast · a5b3f00d
      Benno Schulenberg authored
      Instead of parsing every multibyte character twice, first with
      parse_mbchar() and then with mbtowc(), just let mbtowc() do all
      the work.  This makes searching for a fixed string twice as fast.
      
      This also gets rid of four variables and lots of memory allocations.
      (And, more importantly: it stops nano messing up the internal state
      of the multibyte-to-wide character conversion, and thus would make
      the calls to mbtowc_reset() superfluous.)
      a5b3f00d