Re: [INFO] New array base: list.c

2002-10-11 Thread Josef Hook
On Tue, 8 Oct 2002, Leopold Toetsch wrote: > Leon Brocard wrote: > > > Leopold Toetsch sent the following bits through the ether: > > > > > >>So I rewrote the base routines almost from scratch and have currently a > >>file named list.c > >> > > > > I for one am confused as to t

Re: [INFO] New array base: list.c

2002-10-11 Thread Leopold Toetsch
Josef Hook wrote: > >>- can handle sparse arrays, saving many MBs for very sparse arrays >> > > What is the complexity on the algoritm? Here is a snippet docu, from my recent changes, not checked in yet: [ get_chunk ... locate List_chunk, calc index in chunk ] * The scheme of opera

Re: [INFO] New array base: list.c

2002-10-11 Thread Josef Hook
> - can handle sparse arrays, saving many MBs for very sparse arrays What is the complexity on the algoritm? /Josef

Re: [INFO] New array base: list.c

2002-10-10 Thread Leopold Toetsch
Follow up to my announce + some additional notes. list.c checked in + intlist fix + 3 more tests. Leopold Toetsch wrote: > The current implementation of array.pmc is rather inefficient and > limited - and really slow. > > So I rewrote the base routines almost from scratch and have currently a

Re: [INFO] New array base: list.c

2002-10-08 Thread Leopold Toetsch
Steve Fink wrote: > On Mon, Oct 07, 2002 at 11:25:31PM +0200, Leopold Toetsch wrote: >>If conserving memory is an issue, list.c is much more efficient for very >>small and very big arrays. We will see. >> > > Sounds good to me. I originally wrote, and am currently using, intlist > for regular

Re: [INFO] New array base: list.c

2002-10-08 Thread Steve Fink
On Mon, Oct 07, 2002 at 11:25:31PM +0200, Leopold Toetsch wrote: > So, if people are ok with this, i'll commit it as list.c in parrot's > root (+ some more t/pmc/intlist.t). Transition of array.pmc may then > follow later. > > It's currently not intended to replace intlist.c, I don't know the

Re: [INFO] New array base: list.c

2002-10-08 Thread Leopold Toetsch
Leon Brocard wrote: > Leopold Toetsch sent the following bits through the ether: > > >>So I rewrote the base routines almost from scratch and have currently a >>file named list.c >> > > I for one am confused as to the number of array-like classes in > Parrot. What is the differe

Re: [INFO] New array base: list.c

2002-10-08 Thread Leon Brocard
Leopold Toetsch sent the following bits through the ether: > So I rewrote the base routines almost from scratch and have currently a > file named list.c I for one am confused as to the number of array-like classes in Parrot. What is the difference between list and array? Or intlist? Or multiarr

[INFO] New array base: list.c

2002-10-07 Thread Leopold Toetsch
The current implementation of array.pmc is rather inefficient and limited - and really slow. So I rewrote the base routines almost from scratch and have currently a file named list.c, which I will commit (yep cvs ci, thanks to Dan, Steve and others, who made this possible) in the next future -