]> source.dussan.org Git - jgit.git/commit
RawText: improve performance of isCrLfText and isBinary 58/1200658/5
authorXenoAmess <xenoamess@gmail.com>
Mon, 23 Sep 2024 20:18:06 +0000 (04:18 +0800)
committerThomas Wolf <twolf@apache.org>
Wed, 13 Nov 2024 20:44:55 +0000 (21:44 +0100)
commit6cf5d194f528428f94bda3e2a1a8468244008c81
treebe9917c89c1a6face1dfd81ac54fb20a05f2fd2d
parentbf48fb73a211b020551d574a1ab50138697b7160
RawText: improve performance of isCrLfText and isBinary

Inline the function isBinary(byte, byte), and reduce several duplicated
checks in it, for better performance.

Change-Id: Ida855ed4fd7456d8fb7ed68f3af2dbfa0e25897c
org.eclipse.jgit.benchmarks/src/org/eclipse/jgit/benchmarks/RawTextBenchmark.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/diff/RawText.java