]> git.parisson.com Git - pdf.js.git/commitdiff
make codeLenCodeMap a typed array
authorAndreas Gal <andreas.gal@gmail.com>
Sat, 4 Jun 2011 17:14:17 +0000 (10:14 -0700)
committerAndreas Gal <andreas.gal@gmail.com>
Sat, 4 Jun 2011 17:14:17 +0000 (10:14 -0700)
pdf.js

diff --git a/pdf.js b/pdf.js
index 0f0bfe397b2b082b426abe5f38e62b28f92c4e26..2ce7811052a7e00461b45cb2cf6d41f5534231a3 100644 (file)
--- 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],