Re: [Python-ideas] Delivery Status Notification (Failure)
8 May
2018
8 May
'18
8:51 a.m.
2018-05-07 21:56 GMT+02:00 Neil Girdhar
Regular expressions are not just "an order of magnitude better"—they're asymptotically faster. See https://en.wikipedia.org/wiki/Knuth%E2%80%93Morris%E2%80%93Pratt_algorithm for a non-regular-expression algorithm.
Hence my
[Jacco wrote, capitalized important words] regular expressions would probably be AT LEAST an order of magnitude better in speed, if it's a bottleneck to you. But pure python implementation for this is a lot easier than it would be for the current string.count().
But I think my point stands that that's what you need to do if speed is an issue, and python code is fine when it isn't. Also, intersting read. Thanks. Jacco
2179
Age (days ago)
2179
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jacco van Dorp