Closed
Description
When scanning a non-ini file with more than 1 million lines, it would hang at line below.
(self._analyze_ini_file(add_header=True), configparser.Error,),
I'm able to trace back to configParse and found the following line is extremely inefficient to add all offending lines (essentially all the lines in the file) into the error message with string concatenation.
self.message += '\n\t[line %2d]: %s' % (lineno, line)
I did not have the patience to wait for the scan to finish, on my laptop it did hang for at least more than 10 minutes.
We need a more efficient way to scan large non-ini file.
Metadata
Metadata
Assignees
Labels
No labels