Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Speed differences - be more specific (Miscellaneous)

posted by sol, 06.12.2007, 17:50

> Bullshit.
>
> FreeDOS *reads* files fast (because it implements a scheme similar to what
> you described), probably at least as fast as other DOS's.
>
> If in doubt, *measure* (not speculate) a pur read operation,
>
> c:>copy bigfile.bin NUL
>
> will do.
>
> So it's *writing* the file (and allocating new clusters, writing modified
> FAT, etc.) that is slow.

Reading is always significantly faster than writing. I'm quite certain that FreeDOS is a bit stupid with regards to how it handles file IO. Even if it appears fast, internal hard drive caches and the like can make it appear faster than it is.

Besides, why would FreeDOS have intelligent algorithms to read files, but a really stupid method to write them?

The concept behind writing intelligently is similar. It should write as many clusters as possible at once, and choose a contiguous free area. It should have an intelligent method for searching for free space, etc. Any stupidity here is more evident since the hard disk is much less likely to cache writes as much, since it leaves the HD in an unknown state if there's a power outage, etc (though some HDs have been known to...an OS programmer's bane).

 

Complete thread:

Back to the forum
Board view  Mix view
22632 Postings in 2109 Threads, 402 registered users, 440 users online (0 registered, 440 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum