Re: Vector efficiency



Eric Sosman <esosman@xxxxxxxxxxxxxxxxxxx> wrote in
news:cPmdne5stv1pBW7ZnZ2dnUVZ_rmdnZ2d@xxxxxxxxxxx:

Christopher Smith wrote:

Vector and array are different things, capable of different
operations. You'll have to specify the operations you have in
mind, and what measures of "efficiency" (memory, time, ...?) are
important.



Hi Eric and Patricia --

So I did run a test between the vector approach, where I used the vector
<float>.get(i) to retrieve each record versus aligning the data into an
array declared as float[], and noticed about 2x computational speed
improvement. I guess there are a number of step performing a look up with
vector has to do as opposed to simple addressing through an array.

Chris

.



Relevant Pages

  • Re: Intelligence - one of degree?
    ... And if we were to try to break down the functions of the mind, ... We assume that our consciousness is based in part, ... making short term memory decisions etc. ... A stitch in time saves nine. ...
    (comp.ai.philosophy)
  • Re: Ann: Luxasm 00.01.00 (2004-04-08)
    ... You'll probably change your mind about that, ... memory like some really strong acid that the bad guy wants to dip ... James Bond into...and as LuxAsm is going to be a GUI application ... and there which are paramount considerations...if inserting bananas ...
    (alt.lang.asm)
  • Re: Programming in standard c
    ... read into memory*. ... If you can actually specify the mode, in many cases the size will be ... It's at least two distinct sizes already. ... such accesses with mandatory file locking. ...
    (comp.lang.c)
  • Re: ManagementEventWatcher.start=OutOfMemoryException
    ... the target system really didn't have enough memory to service the request... ... I have to specify different user/pass for each machine to ... >>>> ManagementEventWatcher watcher; ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Probleme mit FoxPro Anwendung auf Windows 2003 Terminalserver
    ... Specifies the maximum buffer memory size in bytes. ... for nBuffMemSize that is less than 256K bytes, ... Specify 0 for nBuffMemSize to return the buffer ...
    (microsoft.public.de.fox)