opensubscriber
   Find in this group all groups
 
The Haskell Cafe more information…

h : haskell-cafe@haskell.org 4 August 2012 • 3:21AM -0400

Re: [Haskell-cafe] [Haskell-beginners] vector indexing time
by KC

REPLY TO AUTHOR
 
REPLY TO GROUP




Thank you for that insight.  :)

On Fri, Aug 3, 2012 at 4:50 AM, Heinrich Apfelmus <apfelmus@quan...
> wrote:

>
> Creating the vector still takes time proportional to the length of the
> vector. In fact, it appears that in your example, the  vector  packages
> optimizes the creation time to create only up to the element that you
> actually demand.
>
> The linear time you're seeing is not the result of an inefficiency of
> vector indexing, but the result of an efficiency in vector creation.
>
>
> Best regards,
> Heinrich Apfelmus
>
> --
> http://apfelmus.nfshost.com
>
>
--
--
Regards,
KC

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.