iolost vs list in Eralng
I started using Erlang few months back. Erlang has very little documentation (in most cases) and no documentation (in some cases). In Erlang strings are implemented in terms of list. Unlike C, string...
View Articleibrowse module for erlang
In the project I am working ( cannot disclose what it is for now ), I had to do a lot of web service calls over http. The server is written in erlang as a gen_server which spawn the process for each...
View ArticleErlang XML parser comparison
I am looking into various XML parsing in Erlang. I found mainly 3 of them. * Xmerl from Erlang distribution * Erlsom * Linked-in driver based on libexpat from ejabberd I did some benchmarking for 3...
View ArticleErlang process mailbox performance
I came across this performance issue in Erlang while doing the pattern matching against the mailbox [a.k.a. selective message processing]. Here is the orignal code: -module (perf).-export( [start/0]...
View Articlehttp request pipeline in Erlang
I tried to use Erlang’s http module for high concurrent requests. It was not performing well due to pipelining and persistent connection issues. This seems to be solved in R13 version. I figured out...
View ArticlePerformance impact of __attribute__((packed))
__attribute__((packed)) is a GNU C++ extension tell the compiler not to not to align the data structure to the machine word. Using this attribute make it easy serialize the content of the structure in...
View ArticleProfiling C++ code using Google Performance Tools
Google performance tool is an excellent tool for profiling C++ code. Install libunwind Install Google Performance Tools Install supporting packages Include profiling code in C++ Run Profiling Generate...
View Article