Timeline for Python pattern searching using re standard lib, str.find()
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 10, 2014 at 11:38 | answer | added | otonvm | timeline score: 2 | |
Jan 10, 2014 at 9:28 | answer | added | 200_success | timeline score: 2 | |
May 3, 2013 at 8:41 | comment | added | Quentin Pradet | Also, what performance improvement do you need? What are possible use cases? There's not much more you can do since find("ID=") is O(n), n being the length of the string. You can get performance only by not traversing the whole string, which is not possible unless we know more about your date (ID always at the end?). | |
Jan 17, 2013 at 16:44 | comment | added | Winston Ewert |
If its a getter you should be referencing self and return ing the answer. If you want help you need to show your actual code! As it stands this is totally useless.
|
|
Jan 17, 2013 at 15:54 | comment | added | chespinoza | This a getter from a class that get the string at the constructor | |
Jan 17, 2013 at 15:17 | comment | added | Winston Ewert |
Is this the actual code that you are trying to improve the performance of? As it stands, print will be more expensive then anything else and relative to that no other change will really matter.
|
|
Jan 17, 2013 at 13:42 | history | asked | chespinoza | CC BY-SA 3.0 |