Skip to content
Snippets Groups Projects
Commit 34b6259b authored by Stanislas Sobieski's avatar Stanislas Sobieski
Browse files

[FIX] cloc: avoid memory issue on big file


Before this commit:
Files that should be ignored in the manifest but aren't (js library for example)
it can happen that files have huge lines, the regex to substract the
comments will overuse memory.
For example, a file of 13M with a line of more that 8M characters, the
memory consumptions peak at 1.7G

The results might be different, but it's an acceptable compromise

closes odoo/odoo#120111

X-original-commit: 0e56e4a7
Signed-off-by: default avatarThibault Francois <tfr@odoo.com>
parent 198977d4
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment