iPhone vs Android
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Tue Sep 13 10:59:52 PDT 2016
On 9/13/16 11:58 AM, Kagamin wrote:
> On Tuesday, 13 September 2016 at 10:04:43 UTC, Andrei Alexandrescu wrote:
>> Do you have a citation? The number I know is 3x from Emery Berger's
>> (old) work. -- Andrei
>
> http://sealedabstract.com/rants/why-mobile-web-apps-are-slow/
This suggests the ratio is 4x not 2x:
====
What this chart says is “As long as you have about 6 times as much
memory as you really need, you’re fine. But woe betide you if you have
less than 4x the required memory.”
====
> http://www-cs.canisius.edu/~hertzm/gcmalloc-oopsla-2005.pdf
> Probably these.
This is Berger's paper I was referring to. It concludes the ratio is 3x
not 2x:
====
With only three times as much memory, the collector runs on average 17%
slower than explicit memory management. However, with only twice as much
memory, garbage collection degrades performance by nearly 70%.
====
So do you agree you were wrong in positing 2x as the rule of thumb?
Andrei
More information about the Digitalmars-d
mailing list