Commit 50749a5
fix: improve hashblob performance up to 100% faster (#2144)
* refactor: directly return boolean expression
* perf: avoid creating new Uint8Array if it already is
* perf: avoid wrapping result in Uint8Array
`hashObject` already returns a `Uint8Array`
* perf: only create one buffer instead of three
* refactor: reintroduce explicit encoding1 parent cda163f commit 50749a5
File tree
5 files changed
+77
-21
lines changed- js/isomorphic-git
5 files changed
+77
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
647 | | - | |
| 647 | + | |
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
| |||
2301 | 2301 | | |
2302 | 2302 | | |
2303 | 2303 | | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
2304 | 2308 | | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
2305 | 2317 | | |
2306 | | - | |
2307 | | - | |
2308 | | - | |
2309 | | - | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
2310 | 2330 | | |
2311 | 2331 | | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
2312 | 2339 | | |
2313 | 2340 | | |
2314 | 2341 | | |
| |||
10752 | 10779 | | |
10753 | 10780 | | |
10754 | 10781 | | |
10755 | | - | |
10756 | | - | |
| 10782 | + | |
| 10783 | + | |
10757 | 10784 | | |
10758 | 10785 | | |
10759 | 10786 | | |
10760 | 10787 | | |
10761 | | - | |
| 10788 | + | |
10762 | 10789 | | |
10763 | 10790 | | |
10764 | 10791 | | |
10765 | | - | |
| 10792 | + | |
| 10793 | + | |
10766 | 10794 | | |
10767 | 10795 | | |
10768 | 10796 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
641 | | - | |
| 641 | + | |
642 | 642 | | |
643 | 643 | | |
644 | 644 | | |
| |||
2295 | 2295 | | |
2296 | 2296 | | |
2297 | 2297 | | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
2298 | 2302 | | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
2299 | 2311 | | |
2300 | | - | |
2301 | | - | |
2302 | | - | |
2303 | | - | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
2304 | 2324 | | |
2305 | 2325 | | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
2306 | 2333 | | |
2307 | 2334 | | |
2308 | 2335 | | |
| |||
10746 | 10773 | | |
10747 | 10774 | | |
10748 | 10775 | | |
10749 | | - | |
10750 | | - | |
| 10776 | + | |
| 10777 | + | |
10751 | 10778 | | |
10752 | 10779 | | |
10753 | 10780 | | |
10754 | 10781 | | |
10755 | | - | |
| 10782 | + | |
10756 | 10783 | | |
10757 | 10784 | | |
10758 | 10785 | | |
10759 | | - | |
| 10786 | + | |
| 10787 | + | |
10760 | 10788 | | |
10761 | 10789 | | |
10762 | 10790 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Large diffs are not rendered by default.
0 commit comments