3 ms·
I'm not sure why they're hibernating when they have a big queue? Usually, one would hibernate when you're idle: you've done all the work (queue is zero), and yo
by toast0 12y ago
I'm not sure why they're hibernating when they have a big queue? Usually, one would hibernate when you're idle: you've done all the work (queue is zero), and you haven't seen a request in a while.
But certainly, don't do length(List) if you need to see if it's empty; pattern match against ([]) and ([Head | Tail]).