From: Andreas Gal Date: Sat, 4 Jun 2011 17:14:17 +0000 (-0700) Subject: make codeLenCodeMap a typed array X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=cd7c229cccfcfb22a2b2983a1312937337cccf07;p=pdf.js.git make codeLenCodeMap a typed array --- diff --git a/pdf.js b/pdf.js index 0f0bfe3..2ce7811 100644 --- a/pdf.js +++ b/pdf.js @@ -112,9 +112,9 @@ var StringStream = (function() { })(); var FlateStream = (function() { - const codeLenCodeMap = [ + const codeLenCodeMap = new Uint32Array([ 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 - ]; + ]); const lengthDecode = [ [0, 3],