[Clam-devel] TokenDelay patch

Xavier Amatriain xavier at create.ucsb.edu
Fri Apr 20 11:06:54 PDT 2007


On Fri, 2007-04-20 at 19:51 +0200, Pau Arumi wrote:
> This can't break anything, ho ahead, commit it. We can improve it 
> later. Like leaving only one representation and get rid of
> #ifdefs

Will do..

> However, I don't see what operations are more efficient using a
> vector. Can you explain?
> As I see it, when you copy, say, an spectrum its buffers are
> copied in both cases.

It's not about the copy, which does exist in both cases, but about the
rellocation of memory. Every time you do a push or a pop, the queue
resizes itself... or so does my profiler say ;)





More information about the clam-devel mailing list