Skip to content

Commit

Permalink
Store Request::params as a slice instead of owning ArrayVec (sere…
Browse files Browse the repository at this point in the history
…nity-rs#2694)

This,
1. shrinks the size of Request, when copied around, as it doesn't have
to store the max capacity at all times
2. shrinks llvm-lines (compile time metric) for my bot in debug from
`1,153,519` to `1,131,480` as no monomorphisation has to be performed
for `MAX_PARAMS`.
  • Loading branch information
GnomedDev authored and arqunis committed Jan 16, 2025
1 parent 270becf commit b8d8d5c
Show file tree
Hide file tree
Showing 3 changed files with 201 additions and 225 deletions.
Loading

0 comments on commit b8d8d5c

Please sign in to comment.