One option would be to double tmplen each pass. That would make it take, in my case, 10 tries, rather than ~750.
so:
- tmplen += grplen; + tmplen *= 2;
One option would be to double tmplen each pass. That would make it take, in my case, 10 tries, rather than ~750.
so:
- tmplen += grplen;
+ tmplen *= 2;