Skip to content

Commit

Permalink
simple-flat-file: 1.3s -> 300ms for parsing the unicode txt file.
Browse files Browse the repository at this point in the history
Somehow it's spending a ton of time in <string> if split-; is not inlined.
  • Loading branch information
erg committed Jul 7, 2019
1 parent 81f2e9a commit eb25325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basis/simple-flat-file/simple-flat-file.factor
Expand Up @@ -30,7 +30,7 @@ IN: simple-flat-file
utf8 file-lines process-codetable-lines >biassoc ;

: split-; ( line -- array )
";" split [ [ blank? ] trim ] map! ;
";" split [ [ blank? ] trim ] map! ; inline

: load-data-file ( filename -- data )
utf8 file-lines drop-comments [ split-; ] map! ;
Expand Down

0 comments on commit eb25325

Please sign in to comment.