Hi Gideon,

> I guess the question I'm really asking is, from a performance standpoint,
> is it bad to be using a lot of vector views to mask the data?  It enhances
> the clarity of the code, but is having many instances of the vector views
> problematic, from a memory usage point of view?

Re: memory overhead. Most likely it doesn't matter if you have O(1)
active vector views at any time.  By this I mean, you may have O(N)
vectors of data but within any particular loop you're creating a small
number of views before calling into the GSL.

It would be more problematic from a memory overhead perspective if you
have O(N) views and O(N) vectors of data (but depending on the amount
of data in any particular vector, this too may be moot).

Re: runtime performance.  At -O2 I would expect the compiler to whisk
much of the overhead under the rug.

- Rhys

Reply via email to