[erlang-patches] erlang-patches Digest, Vol 35, Issue 3

Björn-Egil Dahlberg <>
Sat Nov 26 02:58:17 CET 2011

2011/11/25 Scott Lystig Fritchie <>

>  wrote:
> a count of the queue size.
> With my limited squinting at the new structure, what would be required to
> make the queue length available?  It'd be very nice if DTrace probes could
> report the length of the queue when enqueueing/dequeueing.  Knowing the
> queue length is easy in R14B04 but seems difficult with the new data
> structure.

I think that in order not to impact the performance of the lock free queue
we cannot keep an updated record of the queue length around. Another queue
function could be implemented to count the length of queue when needed. An
O(n) operation. Nothing planned as of yet and probably not for R15B, but I
mentioned this to Richard Green so he will keep it in mind.

// Björn-Egil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20111126/07d00414/attachment.html>

More information about the erlang-patches mailing list