Boost logo

Boost :

From: John Max Skaller (skaller_at_[hidden])
Date: 2001-08-22 12:29:06


Peter Dimov wrote:
>
> From: "John Max Skaller" <skaller_at_[hidden]>
> > > memset() is incredibly fast nowadays. :-)
> >
> > Sure, but as long as the limit is bus/memory cycle times,
> > its still an order of magnitude slower than the CPU.
>
> A very complicated issue since caches and other brilliant inventions enter
> the picture. Burst-filling a block of memory is likely to be the most
> optimized operation in the memory subsystem; for instance, some RAM designs
> have a 'memset' that works in parallel with the CPU.

        Sure, but how many C compilers let you use it?
Usually, such special hardware is reserved for the kernel
and device drivers.

-- 
John (Max) Skaller, mailto:skaller_at_[hidden] 
10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
New generation programming language Felix  http://felix.sourceforge.net
Literate Programming tool Interscript     
http://Interscript.sourceforge.net

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk