Fix for expensive string length check while consuming input. #4
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-big-o"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Thanks to @nbryant42 for bringing this to my attention.
@nbryant42 can you check that this branch fixes #3?
Thanks for the quick fix. I'll test it tomorrow.
I can confirm that this is major performance improvement; a task that previously took minutes before I gave up waiting now completes in 3 seconds. Also, it still passes my syntax unit tests.
Scaling looks pretty linear now. I'm not going to try to confirm that definitively, because of the way my test script is setup, but... it's pretty close, I think.
@nbryant42 I'm sure that there are plenty of other places we can make it go faster. If you find something definitely let me know. I'm going to merge this now.
Version 0.1.2 has been released to hex. https://hex.pm/packages/lex_luthor/0.1.2