🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.atari16
Article #1940

Re: ue 3.7 (from Turner*Imagen) and disk speed

#1940
From: braner
Date: Mon, 22 Sep 1986 17:41
17 lines
1623 bytes
[]

In my version of microEMACS I left the old putc/getc stuff in for other
systems but #if AtST conditionally compile an alternative faster disk I/O
system.  It uses an 18K RAM buffer, and reads/writes it using the GEMDOS
READ/WRITE functions ($3F/40).  (On reading, I first call SFIRST to find
out the length of the file, then I ask READ to read that much or 18K, which-
ever is less.)  That speeded things up tremendously!  I chose 18K because
it is 4 SS tracks or 2 DS tracks, evenly, and the DMA controller can
read whole tracks in one revolution of the disk.  Of course, files start
in middle of tracks so I actually read about half a track at a time.
I guess that's why 36K proved not significantly faster, and even 9K is
quite good!  (A better way would be to read the FAT, find out where the
track boundaries are, and read a full track at a time!)
For more details look at the file "files.c" on my umacs disk.

- Moshe Braner
Technical Details
Message-ID: <1062@batcomputer.TN.CORNELL.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rochester!cornell!batcomputer!braner
References: <8609060233.AA26238@ucbvax.Berkeley.EDU> <267@myrias.UUCP> <1296@trwrb.UUCP> <567@imagen.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rochester!cornell!batcomputer!braner
From: braner@batcomputer.TN.CORNELL.EDU (braner)
Newsgroups: net.micro.atari16
Subject: Re: ue 3.7 (from Turner*Imagen) and disk speed
Message-ID: <1062@batcomputer.TN.CORNELL.EDU>
Date: Mon, 22-Sep-86 13:41:03 EDT
Article-I.D.: batcompu.1062
Posted: Mon Sep 22 13:41:03 1986
Date-Received: Wed, 24-Sep-86 05:21:07 EDT
References: <8609060233.AA26238@ucbvax.Berkeley.EDU> <267@myrias.UUCP> <1296@trwrb.UUCP> <567@imagen.UUCP>
Reply-To: braner@batcomputer.UUCP (braner)
Organization: Theory Center, Cornell University, Ithaca NY
Lines: 17