About GC
Alexandr Druzhinin
drug2004 at bk.ru
Sun Feb 24 07:08:20 PST 2013
24.02.2013 21:26, Alexandr Druzhinin пишет:
> In the following code http://dpaste.dzfl.pl/f4ae16aa
> memory consumption depends on DATA_SIZE value. Bigger value bigger
> consumption - it's natural. Consumption starts from some value and
> continue to some threshold. After reachin this threshold comsumption
> doesn't enlarge. This threshold depends on DATA_SIZE value and some
> others. My question is how can I find this threshold to know is this
> value suitable for real using or I should change something in my code.
> Is there some guarantee that this threshold will be less than real
> memory on the box? How can I control this threshold?
>
> P.S. or may be I do something wrong in the snippet?
For example if DATA_SIZE = 300 000 memory consumption is 60-70 M, 200
000 - ~40M, 100 000 - ~ 18M (win7 64bits dmd 2.062)
More information about the Digitalmars-d-learn
mailing list