Closed andreyk0 closed 7 years ago
@coltfred any insight here? looks like it was introduced when swapping out kiama
Gosh, this sounds like the issue I fixed where it was always exploring the whole space.
@andreyk0 I don't suppose you could supply an example which shows the issue? I'll try and take a look at it this weekend.
@coltfred sure, https://github.com/andreyk0/optparse-applicative-slow Please pardon all of the proprietary bits, I just gutted the project to the CLI interface and filled bits that didn't compile with junk.
Thanks a lot for taking a look at this!
Good news, I can reproduce it. Bad news, I don't have time to figure out why it's broken right now. This could be a case of me choosing to implement an algorithm which both has to be trampolined and that backtracks. I'll at least dig further this week. Thanks so much for reporting this @andreyk0 so we can get it fixed before more people get bit.
Thanks!
91.09s user 1.72s system 104% cpu 1:29.04 total (v 0.6) vs 2.15s user 0.13s system 162% cpu 1.403 total (v 0.5, most of the time went to logback init)
It seems to be spending a very long time in
findBest
now, e.g. stack trace:Seems related to kiama removal. Reverted project back to 0.5 for now but would appreciate if there were a better answer to this.
Just to give you and idea - it's not a huge CLI but larger than a "hello world", 2 commands, 14 options in the largest command and a handful of global options.
Thanks!