Message378260
Good sleuthing, Dennis! Yes, Fredrik was not willing to add "potentially expensive" (in time or in space) tricks:
http://effbot.org/zone/stringlib.htm
So worst-case time is proportional to the product of the arguments' lengths, and the cases here appear to, essentially, hit that. It _was_ a goal that it always be at least as fast as the dirt-dumb search algorithm it replaced, and in good real-life (not just contrived) cases to be much faster. It met the goals it had. |
|
Date |
User |
Action |
Args |
2020-10-08 17:31:43 | tim.peters | set | recipients:
+ tim.peters, vstinner, pmpp, serhiy.storchaka, josh.r, ammar2, Dennis Sweeney, Zeturic |
2020-10-08 17:31:43 | tim.peters | set | messageid: <1602178303.7.0.636471941566.issue41972@roundup.psfhosted.org> |
2020-10-08 17:31:43 | tim.peters | link | issue41972 messages |
2020-10-08 17:31:43 | tim.peters | create | |
|