lkml.org 
[lkml]   [1996]   [Apr]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: Ideas for reducing memory copying and zeroing times (fwd)
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


\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.108 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site