Re: Ideas for reducing memory copying and zeroing times (fwd)
Ulrich Windl (Ulrich.Windl@rz.uni-regensburg.de)
Thu, 18 Apr 1996 09:17:07 +0200
Just to throw in my thoughts:
Of course it's better to avoid zeroing pages than to seek for a fast
zeroing routine.
I'm wondering if for the 486+ there's something faster than
mov eax,0
rep stosd.
For the 8086 a fully unrolled page clear like
rept 2048
mov [bx],ax
inc ax
endm
would have been faster (I think stosw wasn't too fast). Having
aunrolled clearer for a full page you could computer the entry point
even for different sizes, but is it really woth it?
Ulrich