🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: SHFileOperation - Question

#9901
From: Bob Gonder
Date: Thu, 03 Jun 2004 15:28
31 lines
2446 bytes
Andrue Cope wrote:

>On Wed, 02 Jun 2004 17:00:04 -0700, Bob Gonder wrote:
>
>> Once I've copied a couple files, (MB/sec is tricky when MB is small)
>> the rest copy in the desginated time (pretty close).
>
>Two things can seriously throw the calculation in my experience:Copying
>subdirectories and copy across a network. Nonetheless the OS provided
>estimate is appallingly bad.

I haven't found the network to be a problem, but then I don't have any
other users on it <g>. Subdirs I handle with a thread that right after
selection, recurses and adds up all the files. Usually completes by
the time I pick a destination.
The Other problem is MS's lazy writes.  The first couple Megs really
fly because they're just queued, then when the que fills, throughput
crashes.

>I have a windowed XCopy replacement that uses up to five threads to read

That's what I was after doing, but so far, just does dirs/subdirs,
copy or move, overwrite, rename or leave alone, never stop for errors.

>The only problem with that app. is that since it copies files byte-by-byte
>it can be slower if both the source and destination are compressed. I just
>haven'd had the time or inclination to look into that. I think I'd have to
>change to using CopyFileEx() to get round that.

Yeah, it's definately easy to use. Just wish there was a MoveFileEx
with a callback.
Technical Details
Message-ID: <ltfub0p5tuujv8setju3ut1v2389lmv6s6@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40bdb13e@newsgroups.borland.com> <1m1nvj6lbffpw.ufpbxtniolsi.dlg@40tude.net> <kmpsb01vcrfboa8ehn7s2dev7tkubfljf8@4ax.com> <43nfl0d0ek38.1nap1glfteqhb$.dlg@40tude.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,acf999c4e1362fc6
X-Google-Attributes: gid10cc67,public
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: SHFileOperation - Question
Date: Thu, 03 Jun 2004 08:28:22 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <ltfub0p5tuujv8setju3ut1v2389lmv6s6@4ax.com>
References: <40bdb13e@newsgroups.borland.com> <1m1nvj6lbffpw.ufpbxtniolsi.dlg@40tude.net> <kmpsb01vcrfboa8ehn7s2dev7tkubfljf8@4ax.com> <43nfl0d0ek38.1nap1glfteqhb$.dlg@40tude.net>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 65.41.214.168
X-Trace: newsgroups.borland.com 1086276501 65.41.214.168 (3 Jun 2004 08:28:21 -0700)
Lines: 33
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail