aboutsummaryrefslogtreecommitdiffstats
path: root/git-gui
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2025-07-18 11:39:11 +0200
committerJunio C Hamano <gitster@pobox.com>2025-07-22 07:28:40 -0700
commita79e3519d66671a408041dac8c56d99078de41f2 (patch)
tree554e537bad8bc449ba4a5bacbc030b39f7c65c63 /git-gui
parentprio-queue: add prio_queue_replace() (diff)
downloadgit-a79e3519d66671a408041dac8c56d99078de41f2.tar.gz
git-a79e3519d66671a408041dac8c56d99078de41f2.zip
commit: use prio_queue_replace() in pop_most_recent_commit()
Optimize pop_most_recent_commit() by adding the first parent using the more efficient prio_queue_peek() and prio_queue_replace() instead of prio_queue_get() and prio_queue_put(). On my machine this neutralizes the performance hit it took in Git's own repository when we converted it to prio_queue two patches ago (git_pq): $ hyperfine -w3 -L git ./git_2.50.1,./git_pq,./git '{git} rev-parse :/^Initial.revision' Benchmark 1: ./git_2.50.1 rev-parse :/^Initial.revision Time (mean ± σ): 1.073 s ± 0.003 s [User: 1.053 s, System: 0.019 s] Range (min … max): 1.069 s … 1.078 s 10 runs Benchmark 2: ./git_pq rev-parse :/^Initial.revision Time (mean ± σ): 1.077 s ± 0.002 s [User: 1.057 s, System: 0.018 s] Range (min … max): 1.072 s … 1.079 s 10 runs Benchmark 3: ./git rev-parse :/^Initial.revision Time (mean ± σ): 1.069 s ± 0.003 s [User: 1.049 s, System: 0.018 s] Range (min … max): 1.065 s … 1.074 s 10 runs Summary ./git rev-parse :/^Initial.revision ran 1.00 ± 0.00 times faster than ./git_2.50.1 rev-parse :/^Initial.revision 1.01 ± 0.00 times faster than ./git_pq rev-parse :/^Initial.revision Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui')
0 files changed, 0 insertions, 0 deletions
ions'>-29/+3 2020-07-15lib/test-string_helpers.c: Add string_upper() and string_lower() testsVadim Pasternak1-0/+67 2020-07-15lib/string_helpers: Introduce string_upper() and string_lower() helpersVadim Pasternak1-0/+15 2020-07-15platform/x86: thinkpad_acpi: Replace HTTP links with HTTPS onesAlexander A. Klimov1-5/+5 2020-07-15platform/x86: thinkpad_acpi: not loading brightness_init when _BCL invalidAaron Ma1-2/+5 2020-07-15platform/x86: thinkpad_acpi: lap or desk mode interfaceMark Pearson2-2/+124 2020-07-15platform/x86: thinkpad_acpi: Revert "Use strndup_user() in dispatch_proc_writ...Andy Shevchenko1-3/+11 2020-07-14platform/x86: asus-nb-wmi: add support for ASUS ROG Zephyrus G14 and G15Armas Spann1-0/+82 2020-07-14platform/x86: intel-vbtn: Fix return value check in check_acpi_dev()Lu Wei1-1/+1 2020-07-14platform/x86: intel-hid: Fix return value check in check_acpi_dev()Lu Wei1-1/+1 2020-07-09platform/x86: intel_pmc_core: fix bound check in pmc_core_mphy_pg_show()Gaurav Singh1-1/+1 2020-07-09platform/x86: intel_pmc_core: update TGL's LPM0 reg bit map nameSathyanarayana Nujella1-1/+1 2020-07-09platform/x86: asus-wmi: allow BAT1 battery nameVasiliy Kupriakov1-0/+1 2020-07-09platform/x86: dell-wmi: add new dmi mapping for keycode 0xffffY Paritcher1-1/+1 2020-07-09platform/x86: dell-wmi: add new keymap type 0x0012Y Paritcher1-2/+20 2020-07-09platform/x86: dell-wmi: add new backlight eventsY Paritcher1-0/+4 2020-07-09platform/x86: Add new intel_atomisp2_led driverHans de Goede4-0/+144 2020-07-09platform/x86: ISST: Add new PCI device idsSrinivas Pandruvada3-0/+5 2020-07-09platform/x86: system76-acpi: Fix brightness_set schedule while atomicNick Shipp1-6/+6 2020-07-09platform/x86: intel_cht_int33fe: Drop double check for ACPI companion deviceAndy Shevchenko1-8/+6 2020-06-14Linux 5.8-rc1v5.8-rc1Linus Torvalds1-2/+2 2020-06-14security: Add LSM hooks to set*gid syscallsThomas Cedeno5-1/+40 2020-06-14Revert "btrfs: switch to iomap_dio_rw() for dio"David Sterba4-166/+169 2020-06-13net: ethernet: ti: ale: fix allmulti for nu type aleGrygorii Strashko1-9/+40 2020-06-13net: ethernet: ti: am65-cpsw-nuss: fix ale parameters initGrygorii Strashko1-1/+1 2020-06-13net: atm: Remove the error message according to the atomic contextLiao Pingfang1-3/+1