Re: Referencing a row in a two dimensional array

"SmallHairyTroll <[email protected]>" <[email protected]>
Newsgroups gmane.lisp.corman
Message-ID <[email protected]>
--- In [email protected], Marco Antoniotti <marcoxa@c...> 
wrote:
> 
> > In CLL, is READ-SEQUENCE implemented in a similar fashion to the 
C
> > function "fread" ?
> >
> > Anyone help?
> 
> 
> Essentially you define your row as a "displaced array" to the 
original 
> one and then you can use READ-SEQUENCE on it.  You can do also 
> something that you cannot safely do in C.  You can make a vector 
> displaced to the whole N-dimensional array and then read in the 
whole 
> thing in one fell swoop using READ-SEQUENCE.
> 
> Essentially check out the spec for :displaced-to etc etc in the 
ARRAY 
> section.

Thanks for the pointers, Marco & Rudi. I now have READ-SEQUENCE 
reading an entire 1920*1088 bytes into an array.

However the time delta between a single call to READ-SEQUENCE and my 
previous loop which called READ-BYTE for each byte read is 
negligable. In CLL, READ-SEQUENCE seems to be implemented as a loop 
calling READ-BYTE.

I was hoping that READ-SEQUENCE actually read an entire block of 
bytes in one shot, similar to "fread" in C, as this would probably 
increase performance (in my case) by a factor of 100 or more.

-Luke




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/LIgTpC/vN2EAA/xGHJAA/SyjtlB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.