aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2025-01-06 16:14:47 +0100
committerLoïc Hoguin <[email protected]>2025-01-06 16:14:47 +0100
commit921b1ff6178bd6710331609f226789e9a763e1ae (patch)
tree88db01fdf8ef8db8ffa2e64f7f70d77a1e8050df /doc/src
parent28a8462b716b8a20359176ecfed46219f3e516dc (diff)
downloadcowlib-921b1ff6178bd6710331609f226789e9a763e1ae.tar.gz
cowlib-921b1ff6178bd6710331609f226789e9a763e1ae.tar.bz2
cowlib-921b1ff6178bd6710331609f226789e9a763e1ae.zip
Optimise Websocket UTF-8 validation
See comment within the commit for full details. This results in improved Cowboy performance decoding text messages of around 10 to 15% in all scenarios, except when the message is small and it contains mostly non-ASCII (due to the cost of trying ASCII first). This brings decoding of text frames closer to decoding of binary frames, with ASCII data taking approximately 1.1 times longer to decode, mixed data 1.25 times longer and mostly non-ASCII data 1.35 times longer to decode.
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions