scylladb / seastar

High performance server-side application framework
http://seastar.io
Apache License 2.0
8.39k stars 1.55k forks source link

rpc: Emplace buffers into vector, not push #2525

Closed xemul closed 1 week ago

xemul commented 3 weeks ago

There are two places that accumulate a vector of buffer and for that they push-back the temporarily-constructed one. There's the emplace_back shortcut for such cases.

tchaikov commented 3 weeks ago

@scylladb/seastar-maint hello maintainers, could you help merge this change?

xemul commented 2 weeks ago

@avikivity , please review