Just learned: ordering a pattern match in #Erlang so the most common case is first improves performance noticeably.
-
-
@francescoc It was basically getting 20k msg/s from NSQ in a real system not a benchmark per se. but I guess I could replicate it. -
@heinz_gies what do u use NSQ for? -
@nivertech collecting metrics :) hopefully soon to be open sourced.
End of conversation
New conversation -
-
-
@francescoc http://monosnap.com/image/OsuzW2NnOePx8OtyyGzgbUIfuzkpoA … is the recording of CPU time/msgs and https://github.com/project-fifo/ensq/commit/4ec57bf095cac6fbb2cfc58afa6e1a94a861b9f6 … the change set on the first red lineThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@francescoc mind you it was a bad order, the last possible match was hit ~19.990 times out of 20.000 so not a even distribution.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@francescoc and erlang R16B01 not anything modern ;)Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@francescoc and dtrace's of distribution of time spend in the :data function: https://gist.github.com/Licenser/6dd906319f20088c273c …Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.