Allocate a minimum recieve message buffer size

45 views
Skip to first unread message

Jason Clarkson

unread,
Sep 19, 2021, 5:55:08 PM9/19/21
to WebSocket++

Hi all,

So I am currently working on an application where I take in a message from a websocket (written in websocketpp) and parse it using simdjson. Simdjson requires input strings to have a number of bits of padding after the payload (for some internal efficiency purposes). So I was wondering if I can set the size of the read buffer anywhere, otherwise I have to copy the payload into another pre-allocated buffer (which is a bit inefficient).

Many thanks,
Jase
Reply all
Reply to author
Forward
0 new messages