Commit f9fa158
PERF: use PyArrow-native implementation for dt.total_seconds
Avoid conversion to TimedeltaArray by using PyArrow compute directly.
Cast duration to int64, then to float64, and multiply by unit factor.
~3.7x speedup (3.53ms -> 0.96ms for 1M rows).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent 9ee361b commit f9fa158
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2915 | 2915 | | |
2916 | 2916 | | |
2917 | 2917 | | |
2918 | | - | |
| 2918 | + | |
| 2919 | + | |
| 2920 | + | |
| 2921 | + | |
| 2922 | + | |
| 2923 | + | |
| 2924 | + | |
2919 | 2925 | | |
2920 | 2926 | | |
2921 | 2927 | | |
| |||
0 commit comments