1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

Optimize: Minimize object references in find_asso_values.

This reduces the execution time of gperf on large inputs by ca. 4%.

* src/search.cc (Search::find_asso_values): Cache some values in local
variables.
This commit is contained in:
Bruno Haible
2025-04-19 15:05:22 +02:00
parent 772a63e46d
commit a69b7c1c81
2 changed files with 15 additions and 3 deletions

View File

@@ -1,3 +1,10 @@
2025-04-19 Bruno Haible <bruno@clisp.org>
Optimize: Minimize object references in find_asso_values.
This reduces the execution time of gperf on large inputs by ca. 4%.
* src/search.cc (Search::find_asso_values): Cache some values in local
variables.
2025-04-19 Bruno Haible <bruno@clisp.org>
Optimize: Use a hash table in compute_partition.