April 11, 2005
Georg Wrede <georg.wrede@nospam.org> wrote:

[...]
> time to zero out a variable (which really does not take very
> much time)

Memory currently widely used is PC3200 which means that 3.2GB/s can be _read_. The write performance is at about 1.1GB/s according to aida32. This means that timeslicing at 200Hz and above limits the size of memory chunks that can be written to within one timeslice to 5.5MB or less. So that is the space bound to variables we are talking of.

> Also, the D optimizer skips the zeroing anyhow when it sees that the variable is assigned to before use.

Better use "if" instead of "when", because in general the compiler
cannot see whether a variable is assigned to before use.

> So the only reason left for not initialising is to spy on memory.
[...]

As pointed out above at least arrays occupying more than 5MB are of interest.

-manfred
April 16, 2005
"Carlos Santander B." <csantander619@gmail.com> wrote in message news:d3bc8f$2cjb$3@digitaldaemon.com...
> Manfred Nowak wrote:
> > http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D/15598 Walter seems convinced from the "= void" syntax.
> That's what I had in mind. I thought it had been implemented.

No, not yet.


1 2
Next ›   Last »