PERF: Timestamp/Timedelta constructors when passed a Timestamp/Timedelta #30543
Labels
Datetime
Datetime data dtype
Performance
Memory or execution speed performance
Timedelta
Timedelta data type
Milestone
The
Timestamp
constructor's performance could be improved when an existingTimestamp
object is passed to it via anisinstance
-like check:Some care is needed in the constructor to check if other arguments have been passed, e.g.
tz
, where we wouldn't be able to directly return theTimestamp
object.Similar story for the
Timedelta
constructor (should be done in a separate PR):xref #30520
The text was updated successfully, but these errors were encountered: