refactor: use lxml instead of string templating in process_file. #5146
Reference in New Issue
Block a user
Delete Branch "feat/lxml"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Code looks much cleaner and easier to read, as well as being more performant.
Also prevents the construction of invalid xml.
Some benchmarks:
So this reduces build times by about a minute, getting us down to just under 5 minutes for a full build on my machine.
ac54912b71to85af74c12d@@ -246,0 +211,4 @@href.text,flags=re.MULTILINE | re.IGNORECASE,)except AssertionError:One feels intuitively that this should be a full failure. But we use the build process to output ics files, and so we instead just catch the error and log it.
a9b4613252to45115ef18b45115ef18bto78d3246d0678d3246d06to7b306a1423There is a merge conflict now
7b306a1423to89fd795a1aRight, fixed the merge conflict