<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-size: 10pt'>
<p>Hi all,</p>
<p> I am writing a code indexer called er_zaueker: it is based on erlang and redis: https://github.com/daitangio/er_zauker</p>
<p> </p>
<p>It is also my "erlang learning project".</p>
<p>I am trying to optimize it.</p>
<p>What are the OTP API I can use to find out where is spent much of the time?</p>
<p>I need an aggregate timing value to find the slowest functions.</p>
<p><span style="font-size: 12px;">er_zauker breaks the files in "trigram" and push them to redis. This part is done sequentially on a single file, whereas file processing is spread via a lot of processes. </span></p>
<p><span style="font-size: 12px;">The entire work is higly I/O bound, but I hope to break the 10 files per second barrier soon.</span></p>
<p><span style="font-size: 12px;">I'd like tu understang if it make sense to have more processes per single file.</span></p>
<p>To collect trigram I am using the sets module, but I think R17 maps could be even more fast.</p>
<p> </p>
<div>
<pre>---
Gio's Blog http://gioorgi.com</pre>
</div>
</body></html>