[99s-extend] cowboy_loop_handler
Loïc Hoguin
essen at ninenines.eu
Thu Sep 19 11:03:02 CEST 2013
How much is a lot of messages?
Hibernating is a bit more expensive on the CPU but better for saving
memory. It's generally fine to use except when you have a really busy
system. Do note that it also means your responses will be slightly
slower (though that is generally not noticeable).
On 09/19/2013 06:30 AM, akonsu wrote:
> Hello,
>
> from the documentation:
>
> info(Info, Req, State) -> {ok, Req, State} | {loop, Req, State}| {loop,
> Req, State, hibernate}
>
>
> in case my handler receives a lot of messages, and they come very often,
> does a response of the latter form {loop, Req, State, hibernate} save
> anything? Can hibernating in this case actually hinder performance?
>
> thanks
> Konstantin
>
>
> _______________________________________________
> Extend mailing list
> Extend at lists.ninenines.eu
> http://lists.ninenines.eu:81/listinfo/extend
>
--
Loïc Hoguin
Erlang Cowboy
Nine Nines
http://ninenines.eu
More information about the Extend
mailing list