Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #4250

What about garbage collection?

Path csiph.com!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From Sky89 <Sky89@sky68.com>
Newsgroups comp.programming.threads
Subject What about garbage collection?
Date Thu, 3 May 2018 21:21:22 -0400
Organization A noiseless patient Spider
Lines 41
Message-ID <pcfugi$lsl$2@dont-email.me> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
Injection-Date Thu, 3 May 2018 21:21:22 -0000 (UTC)
Injection-Info reader02.eternal-september.org; posting-host="f80612b83378842e152c6e67de07aaa3"; logging-data="22421"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18iMn8za+F9ZPGEuWMsugFK"
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
Content-Language en-US
X-Mozilla-News-Host news://news.eternal-september.org:119
Cancel-Lock sha1:YmMmSCxFzdQGX95LQYZW6PCG5K0=
Xref csiph.com comp.programming.threads:4250

Show key headers only | View raw


Hello..


What about garbage collection?

Read what said Chris Lattner:

"One thing that I don’t think is debatable is that the heap compaction 
behavior of a GC (which is what provides the heap fragmentation win) is 
incredibly hostile for cache (because it cycles the entire memory space 
of the process) and performance predictability."

"Not relying on GC enables Swift to be used in domains that don’t want 
it - think boot loaders, kernels, real time systems like audio 
processing, etc."

"GC also has several *huge* disadvantages that are usually glossed over: 
while it is true that modern GC's can provide high performance, they can 
only do that when they are granted *much* more memory than the process 
is actually using.  Generally, unless you give the GC 3-4x more memory 
than is needed, you’ll get thrashing and incredibly poor performance. 
Additionally, since the sweep pass touches almost all RAM in the 
process, they tend to be very power inefficient (leading to reduced 
battery life)."

Read more here:

https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20160208/009422.html

Here is Chris Lattner's Homepage:

http://nondot.org/sabre/

And here is Chris Lattner's resume:

http://nondot.org/sabre/Resume.html#Tesla



Thank you,
Amine Moulay Ramdane.

Back to comp.programming.threads | Previous | Next | Find similar | Unroll thread


Thread

What about garbage collection? Sky89 <Sky89@sky68.com> - 2018-05-03 21:21 -0400

csiph-web