You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
KasmVNC/kasmweb/core
Jesper Alf Dam 09de4b8349 Don't compact the receive buffer unless we've actually run out of space
Previously, we would compact the buffer (moving unread data to the
start of the buffer) as follows:

- after processing a message, if there are zero unread bytes, just reset
  the indices for first and last unread byte to zero
- else, if at least 1/8th of the buffer is used, copy remaining data to the beginning of the buffer

The second option is never actually necessary, as before inserting new data
into the array, we already check if there's enough free space, and
compact the buffer first if necessary. So we've been doing a lot of
copies that weren't actually needed. Let's not do that any more.
4 years ago
..
decoders Consume data properly in Hextile decoder 4 years ago
input Avoid recursion in Alt check on Firefox 4 years ago
util Replace unnecessary function supportsCursorURIs by a constant variable 4 years ago
base64.js Use default argument for base64 4 years ago
des.js Convert DES into a class 4 years ago
display.js Allow autoscale() with zero height or width 4 years ago
encodings.js Initial commit 5 years ago
inflator.js Initial commit 5 years ago
rfb.js Remove the default value of wsProtocols 4 years ago
websock.js Don't compact the receive buffer unless we've actually run out of space 4 years ago