Skip to content

Instantly share code, notes, and snippets.

View sa2ajj's full-sized avatar

Mikhail Sobolev sa2ajj

  • Helsinki, Finland
View GitHub Profile
@sa2ajj
sa2ajj / gist:993823
Created May 26, 2011 19:12
strange error
Erlang R14A (erts-5.8) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.8 (abort with ^G)
1> P = [{filename,"Filename"},
1> {maintainer,"Maintainer"},
1> {description,"Description"},
1> {package,"Package"},
1> {section,"Section"},
1> {'installed-size',"Installed-Size"},
1> {priority,"Priority"},
@sa2ajj
sa2ajj / gist:956717
Created May 5, 2011 08:12
atom to string conversion benchmark
-module(msr_subst).
-export([doit/0, props/0]).
doit() ->
timer:start(),
Data = data(),
io:format("check_prop: ~p~n", [check_prop(Data)]),
io:format("check_dict: ~p~n", [check_dict(Data)]),
io:format("check_match: ~p~n", [check_match(Data)]),