Commit b2eaed00 authored by Markus Scheidgen's avatar Markus Scheidgen

Parser optimizations.

parent cf7a94db
......@@ -623,11 +623,12 @@ class OctopusParserWrapper():
# Also since input is case insensitive, we need to convert normalized (lowercase)
# metadata names to their real names which are normally CamelCase.
global metaInfoEnv
metaInfoEnv = backend.metaInfoEnv()
metaInfoKinds = metaInfoEnv.infoKinds.copy()
all_metadata_names = list(metaInfoKinds.keys())
global normalized2real
normalized2real = dict(zip(normalize_names(all_metadata_names), all_metadata_names))
if metaInfoEnv is None:
metaInfoEnv = backend.metaInfoEnv()
metaInfoKinds = metaInfoEnv.infoKinds.copy()
all_metadata_names = list(metaInfoKinds.keys())
global normalized2real
normalized2real = dict(zip(normalize_names(all_metadata_names), all_metadata_names))
# Call the old parser without a class.
parserInfo = parser_info
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment