libctf: dedup: describe 'citer'

The distinction between the citer and citers variables in
ctf_dedup_rhash_type is somewhat opaque (it's a micro-optimization to avoid
having to allocate entire sets when we know in advance that we'll only have
to store one value).  Add a comment.

libctf/
	* ctf-dedup.c (ctf_dedup_rhash_type): Comment on citers variables.
This commit is contained in:
Nick Alcock 2024-10-01 15:34:12 +01:00
parent 2e28c75039
commit 6fb274dbac
No known key found for this signature in database

View File

@ -582,6 +582,8 @@ ctf_dedup_rhash_type (ctf_dict_t *fp, ctf_dict_t *input, ctf_dict_t **inputs,
const char *whaterr;
int err = 0;
/* "citer" is for types that reference only one other type: "citers" can store
many of them, but is more expensive to both populate and traverse. */
const char *citer = NULL;
ctf_dynset_t *citers = NULL;