On 2010-12-19 07:33:29 -0500, spir <denis.s...@gmail.com> said:
// pointer t0 = time(); foreach (n ; 0..N2) { p = (n in table); if (p) b = table[n]; }
But why the double lookup? Just dereference the pointer: foreach (n ; 0..N2) { p = (n in table); if (p) b = *p; } -- Michel Fortin michel.for...@michelf.com http://michelf.com/