Paste: >words crashes the listener

Author: rien
Mode: factor
Date: Wed, 12 Oct 2011 15:49:27
Plain Text |
to crash the listener:
USING: io.encodings.8-bit.latin1 unicode.breaks ;
P" /path/to/some/iso-8859-1-encoded-file.txt" latin1 file-contents >words

the file in question is 102 KB.

Annotation: doesn't crash per se

Author: otoburb
Mode: factor
Date: Wed, 12 Oct 2011 15:55:17
Plain Text |
I tried this on a 49K file and it froze up for around 30 seconds, but it was just chugging through. At least it finished.

Annotation: fixed

Author: otoburb
Mode: factor
Date: Wed, 12 Oct 2011 23:14:05
Plain Text |
mrjbq7 fixed this with a code commit. The 189k log file which took 1418 seconds before now takes 0.63 seconds to parse using >words.

https://github.com/slavapestov/factor/commit/d6190e9ef76809b27d4e18f098fbf5f5fbbdeae1

New Annotation

Summary:
Author:
Mode:
Body: