Commit 8317bc62 authored by Marius Gripsgard's avatar Marius Gripsgard
Browse files

Directly push buffers into queue

For the amount these functions get called, std copy is way to expensive
to do. This removes the need for buffer to be copied twice, first to a
std::vector then SmallFixedVector. This also directly copies buffer into
a smallVector without the init overhead smallVector's ctor do. This
result is a massive performance bootst (at least on arm devices).

Also use memcpy since that interestingly seems to be faster on arm
devices, on amd64 they seems to be about the same speed.
parent 0460c930
Showing with 147 additions and 14 deletions
+147 -14
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment