simple-flat-file: 1.3s -> 300ms for parsing the unicode txt file.
Somehow it's spending a ton of time in <string> if split-; is not inlined.clean-macosx-x86-32
parent
81f2e9a0a7
commit
eb25325f87
|
@ -30,7 +30,7 @@ IN: simple-flat-file
|
||||||
utf8 file-lines process-codetable-lines >biassoc ;
|
utf8 file-lines process-codetable-lines >biassoc ;
|
||||||
|
|
||||||
: split-; ( line -- array )
|
: split-; ( line -- array )
|
||||||
";" split [ [ blank? ] trim ] map! ;
|
";" split [ [ blank? ] trim ] map! ; inline
|
||||||
|
|
||||||
: load-data-file ( filename -- data )
|
: load-data-file ( filename -- data )
|
||||||
utf8 file-lines drop-comments [ split-; ] map! ;
|
utf8 file-lines drop-comments [ split-; ] map! ;
|
||||||
|
|
Loading…
Reference in New Issue