Long run time and high cpu usage when trying to determine type of file padded with 'LF'-s
Bug #953971 reported by
Alexander
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
file (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I'm not sure that this is actually a bug. Maybe this is normal behavior?..
Steps to reproduce:
1) create some empty file padded with 'LF's or 'CRLF's only, about 8kb or more in size
2) $ file test-file-LF
On my machine (AMD Athlon(tm) 64 Processor 3000+) with 32kb test file it tooks about 45 seconds:
$ time file test-file-LF
test: ASCII text
real 0m45.917s
user 0m41.903s
sys 0m0.420s
To post a comment you must log in.
$ du -h LF.txt ; time file LF.txt
44K LF.txt
LF.txt: ASCII text
real 0m53.395s
user 0m53.320s
sys 0m0.010s