<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Oh my bad.... I've completely forget of theses aspects of VM. <div>I boosted performance so that Max's original file is parsed with 2us per line vs 3.15us, a full ETL cycle (see my previous mail) takes just 7.8 us per line vs 8.39us. <br><div><br></div><div>and very good hint on Boyer-Moore searching...</div><span class="Apple-style-span" style="font-family: Verdana, Arial, 'Bitstream Vera Sans', Helvetica, sans-serif; font-size: 13px; "><h3 style="font-family: Arial, Verdana, 'Bitstream Vera Sans', Helvetica, sans-serif; font-weight: bold; letter-spacing: -0.018em; page-break-after: avoid; font-size: 14px; ">- dmitry</h3></span><div><div><div>On Mar 26, 2012, at 11:05 PM, Tim Watson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Max have you seen<br><a href="http://blogtrader.net/blog/tim_bray_s_erlang_exercise2">http://blogtrader.net/blog/tim_bray_s_erlang_exercise2</a>. This states<br>"0.93 sec on 1 million lines file on my 4-core linux box" which sounds<br>pretty impressive and is based on pure Erlang (with some ets thrown<br>into the mix by the looks of things). Might be worth looking at<br>whether this can potentially out-perform the NIF!<br><br>On 26 March 2012 12:40, Max Lapshin <<a href="mailto:max.lapshin@gmail.com">max.lapshin@gmail.com</a>> wrote:<br><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">And what do these numbers look like? Do they repeat? Are they short?<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Right as in example csv. It is trading data.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Or are they high-precision and varying wildly in order of magnitude,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">and widely distributed statistically?<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">They are very close to each other and vary not more than several percents.<br></blockquote><blockquote type="cite">You think ot is a good place for optimization?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">In fact I have achieved good enough results: less than a second and thank to<br></blockquote><blockquote type="cite">all community for it.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">erlang-questions mailing list<br></blockquote><blockquote type="cite"><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br></blockquote><blockquote type="cite"><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a><br></blockquote><blockquote type="cite"><br></blockquote>_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>http://erlang.org/mailman/listinfo/erlang-questions<br></div></blockquote></div><br></div></div></body></html>