mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 13:09:22 +00:00
Optimize: Test large equivalence classes for conflict first.
This reduces the execution time of gperf on large inputs by ca. 10%. * src/search.cc (cmp_equiv_classes): New function. (compute_partition): Sort the equivalence classes according to decreasing size.
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
2025-04-19 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
Optimize: Test large equivalence classes for conflict first.
|
||||
This reduces the execution time of gperf on large inputs by ca. 10%.
|
||||
* src/search.cc (cmp_equiv_classes): New function.
|
||||
(compute_partition): Sort the equivalence classes according to
|
||||
decreasing size.
|
||||
|
||||
2025-04-19 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
Refactor: Use an array-list instead of a linked-list of equiv.-classes.
|
||||
|
||||
Reference in New Issue
Block a user