252u3130@fergvax.unl.edu (Phil Dietz) (10/15/90)
I suddenly remember hearing about a program that will rearrange the resident libraries so some programs will execute faster. When looking at XOPER, I noticed that my dos.library was last on the list! This means that DOS commands will take the longest to access. True, it may be milliseconds of difference, but who wants a slow system! Could someone tell me the name of the re-arranging program? Phil Dietz <<<=================--------- Cheap Ad ---------===================<<< Phil Dietz SWL Lincoln 565 MEGS! 2 lines 252u3130@fergvax.unl.edu (402)421-1963 AMIGA, IBM, MAC, GIFS Unless your're qweer, you'll buy an Amiga.
peterk@cbmger.UUCP (Peter Kittel GERMANY) (10/15/90)
In article <1990Oct14.213556.25943@hoss.unl.edu> 252u3130@fergvax.unl.edu (Phil Dietz) writes: >I suddenly remember hearing about a program that will rearrange the >resident libraries so some programs will execute faster. Doesn't sound very likely. The list is only scanned on OpenLibrary() call, then a program remembers the found address in a variable. I hardly can imagine a software that permanently opens a library (and hopefully closes it again) in a tight loop. Would be strange practice. And I can't imagine circustances where this could become necessary. Perhaps talk was about rearranging the resident program list? But also those CLI programs are not often called by other programs. -- Best regards, Dr. Peter Kittel // E-Mail to \\ Only my personal opinions... Commodore Frankfurt, Germany \X/ {uunet|pyramid|rutgers}!cbmvax!cbmger!peterk
peter@cbmvax.commodore.com (Peter Cherna) (10/15/90)
In article <1990Oct14.213556.25943@hoss.unl.edu> 252u3130@fergvax.unl.edu (Phil Dietz) writes: >I suddenly remember hearing about a program that will rearrange the >resident libraries so some programs will execute faster. When looking >at XOPER, I noticed that my dos.library was last on the list! This >means that DOS commands will take the longest to access. True, it may >be milliseconds of difference, but who wants a slow system! The order of resident libraries typically affects only a few operations, such as "OpenLibrary()". If you OpenLibrary("dos.library"), you get the library pointer back. Calls made to dos.library use that library pointer -- they don't have to scan the list again. Rearranging libraries would be of dubious performance benefit. >Phil Dietz Peter -- Peter Cherna, Software Engineer, Commodore-Amiga, Inc. {uunet|rutgers}!cbmvax!peter peter@cbmvax.cbm.commodore.com My opinions do not necessarily represent the opinions of my employer. "Television is a medium because it is neither rare nor well-done."
jesup@cbmvax.commodore.com (Randell Jesup) (10/16/90)
In article <15155@cbmvax.commodore.com> peter@cbmvax.commodore.com (Peter Cherna) writes: >In article <1990Oct14.213556.25943@hoss.unl.edu> 252u3130@fergvax.unl.edu (Phil Dietz) writes: >>I suddenly remember hearing about a program that will rearrange the >>resident libraries so some programs will execute faster. >The order of resident libraries typically affects only a few operations, >such as "OpenLibrary()". If you OpenLibrary("dos.library"), you get >the library pointer back. Calls made to dos.library use that library >pointer -- they don't have to scan the list again. > >Rearranging libraries would be of dubious performance benefit. Normally, Peter would be right. However, the 1.3 and before dos.library was written in BCPL, and whenever it needed to access the library base, or rootnode, or DeviceInfo structure, it called OpenLibrary for dos.library. In 2.0, it no longer does this. Bill Hawes found you could get a measurable (though very small, <1%) speed improvement in certain dos operations by moving dos.library to the front of the library list. -- Randell Jesup, Keeper of AmigaDos, Commodore Engineering. {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com BIX: rjesup Common phrase heard at Amiga Devcon '89: "It's in there!"