Timeline for Performance tuning on a text file to object conversion
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 9, 2014 at 18:16 | comment | added | Johan | Hi! Just FYI; I would say that the performance difference was neglectable (+- a few ms) | |
Apr 4, 2014 at 15:52 | comment | added | Johan | Hehe, well I'll try to remember to post the results ;) Thanks again | |
Apr 4, 2014 at 15:51 | history | edited | konijn | CC BY-SA 3.0 |
added 6 characters in body
|
Apr 4, 2014 at 15:50 | comment | added | konijn | for ++ +1, because I am an idiot ;) Also, for indexOf because of the startPosition, I am not convinced yet that it will be slower | |
Apr 4, 2014 at 15:03 | comment | added | Johan |
Thank you for an alternative solution. Yes, regex is always my very last resort. I think this will be slower than @200's version due to the use of indexOf . Regarding index++ + 1 ; why not do index += 2 ? I only have dummy data to test with at the moment, but I'll try to remember to post some performance results here once I get some real data to play around with.
|
|
Apr 4, 2014 at 14:44 | history | answered | konijn | CC BY-SA 3.0 |