mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 13:09:22 +00:00
Use a hash table in compute_partition, part 2.
* src/search.cc (Search::compute_partition): Fix a memory leak.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2025-04-20 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
|
Use a hash table in compute_partition, part 2.
|
||||||
|
* src/search.cc (Search::compute_partition): Fix a memory leak.
|
||||||
|
|
||||||
2025-04-19 Bruno Haible <bruno@clisp.org>
|
2025-04-19 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
Optimize: Test large equivalence classes for conflict first.
|
Optimize: Test large equivalence classes for conflict first.
|
||||||
|
|||||||
@@ -1078,6 +1078,7 @@ Search::compute_partition (bool *undetermined) const
|
|||||||
/* Add the keyword to the equivalence class number pindex. */
|
/* Add the keyword to the equivalence class number pindex. */
|
||||||
partition->_equclasses.get_at(pindex)._keywords.add_last (keyword);
|
partition->_equclasses.get_at(pindex)._keywords.add_last (keyword);
|
||||||
}
|
}
|
||||||
|
map.free ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sort the equivalence classes according to decreasing size.
|
/* Sort the equivalence classes according to decreasing size.
|
||||||
|
|||||||
Reference in New Issue
Block a user