phoenix-dataplane / phoenix

Phoenix dataplane system service
https://phoenix-dataplane.github.io
Apache License 2.0
51 stars 9 forks source link

Determine whether marshal's sglist should use inline smallvecs or std's heap-allocated vec #134

Open libertyeagle opened 2 years ago

libertyeagle commented 2 years ago

Test the performance of marshalling / unmarshalling using these two. Inline vec could invoke more memory copy if we use a larger on-stack array capacity; on the other hand, std's vec could have some additional allocation cost and pointer indirection cost.