• Solly Ross's avatar
    Avoid Creating Small Objects Frequently · d1800d09
    Solly Ross authored
    Creating lots of small objects frequently can drastically decrease
    performance.  This commit introduces three fixes which avoid this:
    
    - Use a preallocated palette and indexed-to-rgb destination Typed Array
      (the destination typed array is currently allocated at `4 * width *
      height`).
    
    - Inline `getTightCLength`, which returned a two-item array.
    
    - Pass RGBX data directly in a Typed Array to the Display, which
      avoids an extra loop, and only creates a new Typed Array View,
      instead of a whole new ArrayBuffer.
    d1800d09
Name
Last commit
Last update
..
chrome-app Loading commit data...
Orbitron700.ttf Loading commit data...
Orbitron700.woff Loading commit data...
base.css Loading commit data...
base64.js Loading commit data...
black.css Loading commit data...
blue.css Loading commit data...
des.js Loading commit data...
display.js Loading commit data...
inflator.js Loading commit data...
input.js Loading commit data...
jsunzip.js Loading commit data...
keyboard.js Loading commit data...
keysym.js Loading commit data...
keysymdef.js Loading commit data...
logo.js Loading commit data...
playback.js Loading commit data...
rfb.js Loading commit data...
ui.js Loading commit data...
util.js Loading commit data...
websock.js Loading commit data...
webutil.js Loading commit data...