1 Aug 2002 02:14
Re: [PATCH] copy-file
Marco Baringer <empb <at> bese.it>
2002-08-01 00:14:00 GMT
2002-08-01 00:14:00 GMT
Sam Steingold <sds <at> gnu.org> writes: > > > 4. it's UNIX-only even though file copying is quite platform > > > independent. > > > > well, the basic idea of a read/write loop is, but the calls with which > > that entire loop is made up aren't. there should be a windows version, > > but for lack of hardware i can't do it, i try and copy 'n paste it > > from somewhere if that would help, but i couldn't even test to see if > > it compiles... > > use CLISP i/o, not OS i/o. > i.e., create CLISP streams and use read_byte_sequence. 1) i implemented copy-file via make_file_stream and read_byte. (for some odd reason (i did not dig deeply) read_byte_sequence always returned 0 bytes read). however, i timed this against the unix specific implementation i had done before and found it to be almost an order of magnitutde slower, average of 3.9 seconds for system independant copy-file vs. 0.5 seconds for unix specific. should i just leave both but use the unix version #if defined(UNIX)? 2) is there anything blatently wrong with this: var object buffer = make_ssbvector(4096); pushSTACK(buffer); pushSTACK(source_stream);(Continue reading)
RSS Feed