Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve performance of adding and subtracting time durations from a p…
…time. (splunk#99) Modifying ptime objects by adding and subtracting time durations was inefficient because it extracted the date and time of day and then re-constructed a ptime using the date and modified time of day. This can be avoided by using the existing time_system utilities which perform the operation by adjusting the number of ticks. Performance is improved by a factor of 48 on my system.
- Loading branch information