show/left: improve speed of --show/--left again by using a single malloc/free for all nodes and reduce RAM by using the first nodes hash information

This commit is contained in:
philsmd
2017-10-18 12:09:32 +02:00
parent 7fa11033a4
commit 276879b1ea
2 changed files with 41 additions and 48 deletions
+1 -3
View File
@@ -1352,9 +1352,7 @@ typedef struct pot_hash_node
typedef struct pot_tree_entry
{
hash_t *key;
pot_hash_node_t *nodes; // head of the linked list
pot_hash_node_t *nodes; // head of the linked list (under the field "hash_buf" it contains the sorting keys)
// the hashconfig is required to distinguish between salted and non-salted hashes and to make sure
// we compare the correct dgst_pos0...dgst_pos3