in reply to FILE IO, delay after finish.
Using syswrite over write only means that Perl won't do any buffering. Your operating system will still do buffering, likely until the file gets closed or the process calls exit.
I guess you can only show the "real" progress as the OS claims by waiting until your program finishes and then calculating the throughput.
As an aside, you might want to unbuffer STDOUT so your progress gets displayed:
$|++;
(unless you're already doing that somewhere). If you're concerned about writing speed, I'd try to write larger buffers, maybe something in the range of the cluster size of the hard disk or in the range of half/twice the cache size of the hard disk to maximize the amount of data available for the disk to write.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: FILE IO, delay after finish.
by exodist (Monk) on Jun 16, 2007 at 19:24 UTC |