optimizing websocket buffer fast copy