uri: optimize allocation of parameters and their values dynamic arrays
Allocation of URI parameters and their values dynamic arrays is done inefficiently: they are reallocated each time a new parameter or parameter value is added — grow them exponentially instead. `struct uri_param` and `struct uri` are exposed in Lua via FFI (see src/lua/uri.lua): add warnings about the necessity of reflecting changes to them in `ffi.cdecl`. Closes #7155 NO_DOC=optimization NO_TEST=optimization
Showing
- changelogs/unreleased/gh-7155-uri-optimize-add-param-and-add-param-value.md 3 additions, 0 deletions...sed/gh-7155-uri-optimize-add-param-and-add-param-value.md
- src/lib/uri/uri.c 31 additions, 9 deletionssrc/lib/uri/uri.c
- src/lib/uri/uri.h 9 additions, 0 deletionssrc/lib/uri/uri.h
- src/lua/uri.lua 2 additions, 0 deletionssrc/lua/uri.lua
Loading
Please register or sign in to comment