Is there a way to convert a list of string to numbers faster than ToExpression
?
str = ToString /@ RandomReal[100, 1000];
ToExpression@str; // AbsoluteTiming // First
(* 0.007714 *)
Related: How to convert string to integer list?
Edit Thanks to J.M. who pointed to this answer:
Internal`StringToDouble/@str; // AbsoluteTiming // First
(* 0.000834 *)