yaooqinn commented on issue #26622: [WIP][SPARK-28023][Test] Cheap UTF8String Trim URL: https://github.com/apache/spark/pull/26622#issuecomment-556994702 #### normal trim v.s. inside trim in toInt and toLong ```java [info] Java HotSpot(TM) 64-Bit Server VM 1.8.0_231-b11 on Mac OS X 10.15.1 [info] Intel(R) Core(TM) i5-5287U CPU @ 2.90GHz [info] Cast String to Integral: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative [info] ------------------------------------------------------------------------------------------------------------------------ [info] cast(trim(str) as int) as c_int 4026 7674 NaN 2.0 491.5 1.0X [info] cast(trim(str) as long) as c_long 4022 7887 1345 2.0 491.0 1.0X [info] cast(str as int) as c_int 4390 6453 1009 1.9 535.9 0.9X [info] cast(str as long) as c_long 3759 5388 1413 2.2 458.8 1.1X [info] ```
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
