alamb commented on PR #6402:
URL: https://github.com/apache/arrow-rs/pull/6402#issuecomment-2353455162
I ran with this branch and saw no performance difference (as expected)
```
++ critcmp master master
group master
----- ------
cast binary view to string 1.00 110.1±0.43µs
? ?/sec
cast binary view to string view 1.00 112.7±0.20µs
? ?/sec
cast binary view to wide string 1.00 114.9±0.33µs
? ?/sec
cast date32 to date64 512 1.00 401.5±0.98ns
? ?/sec
cast date64 to date32 512 1.00 609.6±1.19ns
? ?/sec
cast decimal128 to decimal128 512 1.00 2.9±0.01µs
? ?/sec
cast decimal128 to decimal128 512 with same scale 1.00 74.9±0.18ns
? ?/sec
cast decimal128 to decimal256 512 1.00 9.8±0.39µs
? ?/sec
cast decimal256 to decimal128 512 1.00 46.4±0.13µs
? ?/sec
cast decimal256 to decimal256 512 1.00 9.8±0.02µs
? ?/sec
cast decimal256 to decimal256 512 with same scale 1.00 75.1±0.15ns
? ?/sec
cast dict to string view 1.00 51.3±0.17µs
? ?/sec
cast f32 to string 512 1.00 22.4±0.11µs
? ?/sec
cast f64 to string 512 1.00 25.3±0.04µs
? ?/sec
cast float32 to int32 512 1.00 1565.7±2.27ns
? ?/sec
cast float64 to float32 512 1.00 1563.9±1.74ns
? ?/sec
cast float64 to uint64 512 1.00 2.1±0.27µs
? ?/sec
cast i64 to string 512 1.00 18.2±0.06µs
? ?/sec
cast int32 to float32 512 1.00 1453.1±1.31ns
? ?/sec
cast int32 to float64 512 1.00 1597.6±2.62ns
? ?/sec
cast int32 to int32 512 1.00 226.3±0.38ns
? ?/sec
cast int32 to int64 512 1.00 1651.7±1.74ns
? ?/sec
cast int32 to uint32 512 1.00 1652.3±9.38ns
? ?/sec
cast int64 to int32 512 1.00 1699.4±2.37ns
? ?/sec
cast string to binary view 512 1.00 3.6±0.01µs
? ?/sec
cast string view to binary view 1.00 95.9±0.24ns
? ?/sec
cast string view to dict 1.00 217.9±0.67µs
? ?/sec
cast string view to string 1.00 194.5±0.47µs
? ?/sec
cast string view to wide string 1.00 199.9±0.42µs
? ?/sec
cast time32s to time32ms 512 1.00 327.9±1.28ns
? ?/sec
cast time32s to time64us 512 1.00 410.9±51.93ns
? ?/sec
cast time64ns to time32s 512 1.00 612.8±1.39ns
? ?/sec
cast timestamp_ms to i64 512 1.00 514.7±2.73ns
? ?/sec
cast timestamp_ms to timestamp_ns 512 1.00 2.6±0.01µs
? ?/sec
cast timestamp_ns to timestamp_s 512 1.00 223.4±0.45ns
? ?/sec
cast utf8 to date32 512 1.00 11.4±0.04µs
? ?/sec
cast utf8 to date64 512 1.00 40.2±0.13µs
? ?/sec
cast utf8 to f32 1.00 15.4±0.02µs
? ?/sec
cast wide string to binary view 512 1.00 5.9±0.01µs
? ?/sec
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]