You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Template file parser is fragile and very inefficient #625
In TemplateFile.fs it currently rescans the whole file line by line with a RegEx each time it needs to get the value of a new property from the template file being parsed.
Tokenizing the whole file into a dictionary in a single pass would knock a few hundred milliseconds off parsing each file.
Activity
forki commentedon Feb 19, 2015
Could please give a little more details about what you think we should improve.
mavnn commentedon Feb 19, 2015
In TemplateFile.fs it currently rescans the whole file line by line with a RegEx each time it needs to get the value of a new property from the template file being parsed.
Tokenizing the whole file into a dictionary in a single pass would knock a few hundred milliseconds off parsing each file.
Tests for all of the basic functionality can be found here: https://github.com/fsprojects/Paket/blob/b4cf22385761628f4b1f230dcab2f06cf2ae10be/tests/Paket.Tests/TemplateFileParsing.fs
mavnn commentedon Feb 26, 2015
The current parser is not only inefficient but also excessively fragile (see #659 ). I'll have a look at a rewrite over the next few days.
[-]Template file parser is very inefficient[/-][+]Template file parser is fragile and very inefficient[/+]