noVNC/core
Jesper Alf Dam 7d755d10dc 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.
2019-08-16 19:34:09 +02:00
..
decoders Consume data properly in Hextile decoder 2019-02-14 16:57:26 +01:00
input Remove intermediate variable from mouse 2019-02-16 23:31:58 +02:00
util Replace unnecessary function supportsCursorURIs by a constant variable 2019-02-27 10:14:50 +02:00
base64.js Use default argument for base64 2019-02-26 23:52:47 +02:00
des.js Convert DES into a class 2019-02-26 23:53:43 +02:00
display.js Allow autoscale() with zero height or width 2019-04-02 16:51:18 +02:00
encodings.js Change copyright header (#1138) 2018-10-09 12:15:35 +02:00
inflator.js Use ES6 classes 2018-07-12 19:06:57 +02:00
rfb.js Remove the default value of wsProtocols 2019-07-23 16:03:49 +02:00
websock.js Don't compact the receive buffer unless we've actually run out of space 2019-08-16 19:34:09 +02:00