🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16406

Re: File Copy Operation

#16406
From: Andrue Cope
Date: Thu, 15 May 2003 10:02
24 lines
2051 bytes
Muhammad Momin Rashid,

> 1. This approach is significantly slower than the windows file copy
> operation itself.  I need to speed up my file coping operation.

Is this for a compressed file? The Windows shell copies those without 
decompressing them first.

> 2. The operation consumes a lot of processing power while reading from media
> such as CDROM etc.  Is there any way to bring down the processor usage?

I wouldn't have thought so but what size buffer are you using? You should use 
at least 16kB but less than 64kB. Also check if the CDROM reader is using PIO 
or DMA. Windows tends to use PIO if it's at all unsure about the CDROM 
reader's ability.

> 3. If there is a problem in file reading (bad or corrupted media) the system
> locks up for a fair amount of time.  How to avoid this? and how can I

Check your buffer. If you are reading too much in one go it might have this 
effect.
--
Andrue Cope
[Bicester, UK]
Technical Details
Message-ID: <VA.00001cc9.007db8e9@email.address.sorry>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!newspeer1.nwr.nac.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ec35dd4@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,2c3eb0c8d9515a68
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-15 03:13:53 PST
Date: Thu, 15 May 2003 11:02:48 +0100
Newsgroups: borland.public.cppbuilder.nativeapi
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: Virtual Access by Atlantic Coast PLC, http://www.atlantic-coast.com/va
Message-ID: <VA.00001cc9.007db8e9@email.address.sorry>
Subject: Re: File Copy Operation
From: Andrue Cope <not.a.valid@email.address.sorry>
Reply-To: not.a.valid@email.address.sorry
References: <3ec35dd4@newsgroups.borland.com>
NNTP-Posting-Host: 217.207.223.34
X-Trace: newsgroups.borland.com 1052992973 217.207.223.34 (15 May 2003 03:02:53 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!newspeer1.nwr.nac.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail