Skip to content
Snippets Groups Projects
Commit d4ea6d02 authored by Lyndon Brown's avatar Lyndon Brown Committed by Jean-Baptiste Kempf
Browse files

core: use config count not size for allocating space for options

`size` counts both actual options **and** hint entries within option
sets. `count` only counts the actual options. we are only interested in
the actual options here, so we should use `count` to allocate only the
memory we actually need. this avoids allocating roughly 1000 pointers'
worth of unused space.

the addition of the assert was requested in review.
parent 7aa19c4f
No related branches found
No related tags found
1 merge request!490core: use config count not size for allocating space for options
Pipeline #125347 passed with stages
in 44 minutes and 36 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment