mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Use a cache to minimize the number of Name objects.
This commit is contained in:
parent
cab5d7b96f
commit
fdb7c218da
8 changed files with 18 additions and 14 deletions
|
@ -586,7 +586,7 @@ var Lexer = (function LexerClosure() {
|
|||
error('Warning: name token is longer than allowed by the spec: ' +
|
||||
strBuf.length);
|
||||
}
|
||||
return new Name(strBuf.join(''));
|
||||
return Name.get(strBuf.join(''));
|
||||
},
|
||||
getHexString: function Lexer_getHexString() {
|
||||
var strBuf = this.strBuf;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue