<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#330000">
    hi<br>
    <br>
    What is the fastest way to transform a column of stringed numbers in
    numbers?<br>
    <br>
    It has come to this: I actually write my column in an HDD and then
    read it again. <br>
    <br>
    Using the magical csv_readwrite toolblox is paradoxically faster
    than evstr. Here goes a fast benchmark:<br>
    <br>
    <br>
    stacksize("max")<br>
    <br>
    N=10000;<br>
    <br>
    paf = string(rand(N,1));<br>
    <br>
    tic()<br>
    hop = evstr(paf)<br>
    disp("evstr method "+string(toc()))<br>
    <br>
    tic()<br>
    csv_write(paf,TMPDIR+filesep()+"paf")<br>
    hop=csv_read(TMPDIR+filesep()+"paf")<br>
    disp("using HDD "+string(toc()))<br>
    <br>
    tic()<br>
    hop = eval(paf)<br>
    disp("eval method "+string(toc()))<br>
    <br>
     <br>
     evstr method 1.328   <br>
     <br>
     using HDD 0.078   <br>
     <br>
     eval method 2.094   <br>
    <br>
    <br>
    logical conclusion: Allan, can you tweak csv_readwrite so it writes
    to and reads from the RAM ? it would be even faster !<br>
    <br>
    <div class="moz-signature">-- <br>
      Adrien Vogt-Schilb (Cired) <br>
      Tel: (+33) 1 43 94 <b>73 77</b></div>
  </body>
</html>