small performance tweaks and remove package license expression

package license url is deprecated in favour of package license expression but nuget doesn't seem to support expressions properly for published packages yet so we'll keep the deprecated url for the time being. having both url and expression causes the build to fail.

small obvious performance improvements for file header passing and getting the encoding information using the existing reverse name to code map.
This commit is contained in:
Eliot Jones
2019-08-18 13:47:01 +01:00
parent 3ff8637bb0
commit d98b8b43c1
6 changed files with 37 additions and 49 deletions

View File

@@ -88,7 +88,7 @@
var crossReferenceStreamParser = new CrossReferenceStreamParser(filterProvider);
var crossReferenceParser = new CrossReferenceParser(log, xrefValidator, objectChecker, crossReferenceStreamParser, new CrossReferenceTableParser());
var version = container.Get<FileHeaderParser>().Parse(scanner, isLenientParsing);
var version = FileHeaderParser.Parse(scanner, isLenientParsing, log);
var crossReferenceOffset = container.Get<FileTrailerParser>().GetFirstCrossReferenceOffset(inputBytes, scanner, isLenientParsing);