mdiff: replace wscleanup() regexps with C loops
On my system it reduces: hg annotate -w mercurial/commands.py from 36s to less than 8s, to be compared with 6.3s when run without whitespace options.
Showing
- mercurial/bdiff.c 44 additions, 0 deletionsmercurial/bdiff.c
- mercurial/mdiff.py 2 additions, 3 deletionsmercurial/mdiff.py
- mercurial/pure/bdiff.py 8 additions, 1 deletionmercurial/pure/bdiff.py
- tests/test-bdiff.py 14 additions, 0 deletionstests/test-bdiff.py
- tests/test-bdiff.py.out 1 addition, 0 deletionstests/test-bdiff.py.out
Loading
Please register or sign in to comment