Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #359

Re: Fastest way to extract data from producer-consumer shared queue

From "Balog Pal" <pasa@lib.hu>
Newsgroups comp.programming.threads
Subject Re: Fastest way to extract data from producer-consumer shared queue
Date 2011-06-23 17:08 +0200
Organization ETT newsserver
Message-ID <itvktb$ac4$1@news.ett.com.ua> (permalink)
References <9a94c240-89e1-4382-81b8-427a60b04039@v11g2000prk.googlegroups.com> <itqbaa$1551$1@news.ett.com.ua> <3fbb25df-bab3-4727-a1f6-88fbd1e506e1@e17g2000prj.googlegroups.com>

Show all headers | View raw


"ittium" <ittium@gmail.com>
>I am not sure if swapping is a efficient operation, efficiency of such
>an operation might be O(n). If you think otherwise please send me some
>relevant link.

Swapping std:: or any other healthy containers is cheap and constant time. 
It only swaps a few pointers. 

Back to comp.programming.threads | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Fastest way to extract data from producer-consumer shared queue ittium <ittium@gmail.com> - 2011-06-21 03:13 -0700
  Re: Fastest way to extract data from producer-consumer shared queue "Balog Pal" <pasa@lib.hu> - 2011-06-21 16:53 +0200
    Re: Fastest way to extract data from producer-consumer shared queue ittium <ittium@gmail.com> - 2011-06-23 06:19 -0700
      Re: Fastest way to extract data from producer-consumer shared queue "Balog Pal" <pasa@lib.hu> - 2011-06-23 17:08 +0200

csiph-web