[Clam-devel] TokenDelay patch

David García Garzón dgarcia at iua.upf.edu
Sat Apr 21 13:00:47 PDT 2007

On Divendres 20 Abril 2007, Xavier Amatriain wrote:
> 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 ;)

uau! thats an ugly backstab from the STL, I think we did a preallocation to 
avoid this, but it wasn't working. Anyway, why a CLAM::Array instead of a 
std::vector ;-)

David García Garzón
(Work) dgarcia at iua dot upf anotherdot es
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20070421/234eda93/attachment.sig>

More information about the clam-devel mailing list