websockets-rs / rust-websocket

A WebSocket (RFC6455) library written in Rust
http://websockets-rs.github.io/rust-websocket/
MIT License
1.55k stars 223 forks source link

Optimize reading bytes in DataFrame #91

Closed vi closed 7 years ago

vi commented 8 years ago

Avoid calling std::io::read_one_byte for each byte, go from 30 MiB/s to 200 MiB/s.

illegalprime commented 7 years ago

thanks! there's a weird travis failure I'll have to look into it before merging.