guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: One trivial querstion about datatype


From: Dmitry Morozhnikov
Subject: Re: One trivial querstion about datatype
Date: Tue, 25 Dec 2001 00:40:21 +0800 (IRKT)

On 23 Dec 2001, Alex Shinn wrote:

AS> Oh, if you're using that code, make sure you replace the < checks
AS> with <= (obi-wan error, sorry).

Ups.. yes.

Dmitry>> It`s intresting..  Go look how it implemented in perl..  How
Dmitry>> determine time when list of many vectors must be rebuilded
Dmitry>> in one vector for fast referencing?
AS> [warning: for any of you who got the urge *don't* look at the Perl
AS> source... it's not pretty]

Ups! Please sorry my poor english knowledge.. :-) But i`m look  at
av.c.. Can`t say  what  understand  it  exactly,  but  think  what
'unshift' ended with realloc  and  memmove,  while  'shift'  ended
with  incrementing  internal  pointer  to  actual   data   without
freeing. Looks ugly for me..

AS> So vector-set-length!  isn't so important because you can
AS> accomplish the same thing in Scheme.

..but (possible) with unneded performance loss..

-- 
DM, Dmitry Morozhnikov, PGPKEY 0xB6C14D95




reply via email to

[Prev in Thread] Current Thread [Next in Thread]