[Issue 17736] New: bigint opunary should be better performing
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Aug 9 18:07:44 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17736
Issue ID: 17736
Summary: bigint opunary should be better performing
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: schveiguy at yahoo.com
Currently, opUnary!"++" maps to
this = this + 1
However, this is going to allocate a whole new temporary structure and then
throw it away. opUnary ++ and -- should edit the bigint in place.
Same goes for opOpAssign, those could be improved, but this issue is for the
low hanging fruit, as incrementing is easy.
--
More information about the Digitalmars-d-bugs
mailing list