https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112022-03-15T21:47:46ZRuby Issue Tracking SystemRuby master - Feature #18634: Variable Width Allocation: Arrayshttps://bugs.ruby-lang.org/issues/18634?journal_id=968492022-03-15T21:47:46ZEregon (Benoit Daloze)
<ul></ul><p>Improvement is Branch/master?<br>
It seems inconsistent for these 2 example lines:</p>
<pre><code>| p100 (ms) | 5.53 | 6.02 | 0.92x |
| p100 (ms) | 5.54 | 7.03 | 1.27x |
</code></pre>
<p>i.e. the Branch takes less time for both, but once improvement is <1x and once >1x.</p> Ruby master - Feature #18634: Variable Width Allocation: Arrayshttps://bugs.ruby-lang.org/issues/18634?journal_id=968502022-03-15T21:50:59Zpeterzhu2118 (Peter Zhu)peter@peterzhu.ca
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/96850/diff?detail_id=62172">diff</a>)</li></ul> Ruby master - Feature #18634: Variable Width Allocation: Arrayshttps://bugs.ruby-lang.org/issues/18634?journal_id=968512022-03-15T21:53:46Zpeterzhu2118 (Peter Zhu)peter@peterzhu.ca
<ul></ul><p>Thanks for catching that. It was a math error.</p>
<p>Improvement for numbers where higher is better (e.g. RPS, IPS) is calculated as branch/master.</p>
<p>Improvement for numbers where lower is better (e.g. response times) is calculated as master/branch.</p>
<p>In other words, we want to target improvement >= 1 to not make performance worse.</p> Ruby master - Feature #18634: Variable Width Allocation: Arrayshttps://bugs.ruby-lang.org/issues/18634?journal_id=969812022-03-22T13:43:29Zpeterzhu2118 (Peter Zhu)peter@peterzhu.ca
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Applied in changeset <a class="changeset" title="[Feature #18634] Implement Arrays on Variable Width Allocation This commit implements arrays on ..." href="https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/a51f30c6712798fc07e57f692d0d0e5ccc59acf1">git|a51f30c6712798fc07e57f692d0d0e5ccc59acf1</a>.</p>
<hr>
<p>[Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Variable Width Allocation: Arrays (Closed)" href="https://bugs.ruby-lang.org/issues/18634">#18634</a>] Implement Arrays on Variable Width Allocation</p>
<p>This commit implements arrays on Variable Width Allocation. This allows<br>
longer arrays to be embedded (i.e. contents directly follow the object<br>
header) which improves performance through better cache locality.</p>