High memory usage in vibe.d application
12345swordy
alexanderheistermann at gmail.com
Fri Jun 29 16:19:39 UTC 2018
On Friday, 29 June 2018 at 16:07:00 UTC, Anton Fediushin wrote:
> On Friday, 29 June 2018 at 11:11:57 UTC, rikki cattermole wrote:
>> On 29/06/2018 11:09 PM, Anton Fediushin wrote:
>>> It is GC's fault for sure, I built my program with profile-gc
>>> and it allocated a lot there. Question is, why doesn't it
>>> free this memory?
>>
>> Probably doesn't know that it should deallocate so eagerly.
>> A GC.collect(); call may help.
>
> That's a good idea. GC really needs to be kicked in once in a
> while because it did _nothing_ in 8 hours, even though my
> application is just a couple of timers - it isn't a hard task
> for CPU or memory and there's plenty of time to collect some
> garbage.
>
> Now I finally understand why GC is not a great thing. I was
> writing apps utilizing GC for a long time and never had
> problems with it, but when it came down to this simple program
> it stabbed me in the back.
Which language that you had write apps in that utilize GC? Java?
C#? You shouldn't treat D GC the same as other languages GC.
Alexander
More information about the Digitalmars-d-learn
mailing list