|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-08-22 05:57:03
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.
Let's just say that I've never seen a memset() in a profiler report. Perhaps
it's just me.
-- Peter Dimov Multi Media Ltd.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk