[Issue 11289] Better compilation of code using std.typecons.NullableRef
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 29 04:32:07 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=11289
Stanislav Blinov <stanislav.blinov at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |stanislav.blinov at gmail.com
--- Comment #3 from Stanislav Blinov <stanislav.blinov at gmail.com> 2014-01-29 04:32:01 PST ---
> I don't know the cause of the lower performance of the second version. Perhaps
> those extra mov instructions are caused by a higher reister pressure.
It would seem those extra mov instructions are due to "alias this" in
NullableRef's implementation. Thus it's more of an optimizer issue: current
ldc, for example, generates identical code for both versions.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list