Just learned: ordering a pattern match in #Erlang so the most common case is first improves performance noticeably.
@heinz_gies Not necessarily. Used to be sequential, not any more. Now it depends on what you are matching and barely makes a difference.
-
-
@francescoc Done some more comparison it seems most of the performance diff was based on pulling the binary to match on out of the record. -
@heinz_gies traversing message queues takes quite a but of CPU overhead. -
@francescoc Reading the doc I think my case fall in the rare cases where order matches, it was binaries in a case of.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.