Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
The following input takes 1.5 seconds to report syntax error on my Macbook:
The following takes 3 seconds:
The following takes 6 seconds:
The following takes 12 seconds:
The following takes 1+ minute:
... and so on. I haven't measured the exact complexity but it is highly non-linear (possibly exponential). It is fairly easy to create a long enough string that practically leads to a complete hang.
Is this a performance bug?
Found using JQF: https://github.com/rohanpadhye/jqf