From 679a50ca73feaa4c3785f756b97f9ef59872adf7 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sat, 22 Aug 2009 17:30:28 -0300 Subject: [PATCH] micro/rnd_data_2.d: Don't disable the GC Disabling the GC for the filling up the array of arrays just improves the performance, but has no point in the what the benchmark is trying to test. --- micro/rnd_data_2.d | 7 ------- 1 file changed, 7 deletions(-) diff --git a/micro/rnd_data_2.d b/micro/rnd_data_2.d index ee76cf1..29d3750 100644 --- a/micro/rnd_data_2.d +++ b/micro/rnd_data_2.d @@ -4,7 +4,6 @@ // (changed not to print anything and lower the total iterations; ported to // Tango) -import tango.core.Memory; import tango.math.random.Random; int main(char[][] args) @@ -15,8 +14,6 @@ int main(char[][] args) stuff.length = 20; - GC.disable(); - auto rand = new Random(); for(int i = 0; i < 200; i++) { @@ -31,10 +28,6 @@ int main(char[][] args) zig = rand.uniform!(int) % stuff.length; stuff[zig] = arr; - - if (i == 20) { - GC.enable(); - } } return 0; -- 2.43.0