<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - GooString wastes 4 bytes on 64-bit systems"
href="https://bugs.freedesktop.org/show_bug.cgi?id=97506#c8">Comment # 8</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - GooString wastes 4 bytes on 64-bit systems"
href="https://bugs.freedesktop.org/show_bug.cgi?id=97506">bug 97506</a>
from <span class="vcard"><a class="email" href="mailto:jakubkucharski97@gmail.com" title="Jakub Kucharski <jakubkucharski97@gmail.com>"> <span class="fn">Jakub Kucharski</span></a>
</span></b>
<pre>(In reply to Albert Astals Cid from <a href="show_bug.cgi?id=97506#c7">comment #7</a>)
<span class="quote">> Well, it's following your math, no?
>
> static const int STR_STATIC_SIZE = STR_FINAL_SIZE - sizeof(int) -
> sizeof(char*);
> so
> STR_STATIC_SIZE = 32 - 4 + 8 = 36
> so if STR_STATIC_SIZE is already 36 the whole thing will be bigger than 32,
> no?</span >
No. There is no addition. STR_STATIC_SIZE = 32 - 4 - 8 = 20.
My only worry here is performance (due to memory alignment). Benchmarks could
help, but recently I don't have time for figuring out how to properly benchmark
it (or for anything else for that matter). So I suggest letting it hang here
until someone, who has time for that, benchmarks it.
Cheers,
Jakub</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>