Commit ec13fac
authored
Minor performance improvement to timestamp fix (#92)
I had wondered before about the performance implications of making an extra list when parsing timestamps, and @edsu’s recent patch in #89 got me to take a look.
This is a minor 5-6% performance improvement, which may be worthwhile if you are iterating through extremely large result sets. Part of this is not allocating a few new lists, and part is checking the least significant digit first, since there are relatively few valid months/days where the least significant digit is 0.1 parent 1098bbb commit ec13fac
1 file changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
76 | 75 | | |
77 | | - | |
78 | | - | |
79 | | - | |
| 76 | + | |
| 77 | + | |
80 | 78 | | |
81 | | - | |
82 | | - | |
| 79 | + | |
83 | 80 | | |
84 | 81 | | |
85 | 82 | | |
86 | | - | |
| 83 | + | |
87 | 84 | | |
88 | 85 | | |
89 | 86 | | |
| |||
0 commit comments