You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I'm not sure if the issue is with the parsing, although it's the most likely conclusion, the case is that the parsing time seems to increase a lot depending on the number of # you have at the end of your file.
The interactive prompt below shows the progression in parsing/compilation time from 25 single-line comment characters up to 28 of them:
$ printf"#########################"> test.ls
$ time lsc -cbp test.ls
real 0m0.796s
user 0m0.788s
sys 0m0.008s
$ printf"##########################"> test.ls
$ time lsc -cbp test.ls
real 0m1.483s
user 0m1.476s
sys 0m0.012s
$ printf"###########################"> test.ls
$ time lsc -cbp test.ls
real 0m2.836s
user 0m2.836s
sys 0m0.016s
$ printf"############################"> test.ls
$ time lsc -cbp test.ls
real 0m5.573s
user 0m5.580s
sys 0m0.020s
However, if the comment isn't the last line in the file, the parsing time is fine:
$ printf"############################\n"> test.ls
$ time lsc -cbp test.ls
real 0m0.116s
user 0m0.096s
sys 0m0.016s
The text was updated successfully, but these errors were encountered:
Note: This is an automated response to your message "[LiveScript]
LiveScript compiler takes forever to parse a file ending with a comment
containing many # (#279)" sent on 02/16/2013 23:02:39.
This is the only notification you will receive while this person is away.
satyr
added a commit
to satyr/coco
that referenced
this issue
Feb 17, 2013
So, I'm not sure if the issue is with the parsing, although it's the most likely conclusion, the case is that the parsing time seems to increase a lot depending on the number of
#
you have at the end of your file.The interactive prompt below shows the progression in parsing/compilation time from
25
single-line comment characters up to28
of them:However, if the comment isn't the last line in the file, the parsing time is fine:
The text was updated successfully, but these errors were encountered: