October 29, 2012 [dmd-internals] [D-Programming-Language/dmd] 0b1985: Avoid useless memory allocation when comparing str... | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/dmd Commit: 0b19850f34be9379cd33076de790b526a6f16d79 https://github.com/D-Programming-Language/dmd/commit/0b19850f34be9379cd33076de790b526a6f16d79 Author: Don Clugston <don.clugston@sociomantic.com> Date: 2012-10-29 (Mon, 29 Oct 2012) Changed paths: M src/ctfe.h M src/ctfeexpr.c M src/interpret.c Log Message: ----------- Avoid useless memory allocation when comparing strings if (v == str) always created a useless memory allocation, whenever v was a slice of another array. ctfeEqual, ctfeIdentity, ctfeCmp support slices now, so the resolveSlice call is no longer required. Commit: cd56251b4b524d61467dfe65984881e22e50f87c https://github.com/D-Programming-Language/dmd/commit/cd56251b4b524d61467dfe65984881e22e50f87c Author: Don Clugston <don.clugston@sociomantic.com> Date: 2012-10-29 (Mon, 29 Oct 2012) Changed paths: M src/interpret.c Log Message: ----------- CTFE speedup: more unnecessary resolveSlice Two more cases where slices were being resolved, as a workaround for a ctfeEquals limitation which has since been fixed. Commit: fdc299f927752d41985f5d44b898420b4a1991fd https://github.com/D-Programming-Language/dmd/commit/fdc299f927752d41985f5d44b898420b4a1991fd Author: Daniel Murphy <yebblies@gmail.com> Date: 2012-10-29 (Mon, 29 Oct 2012) Changed paths: M src/ctfe.h M src/ctfeexpr.c M src/interpret.c Log Message: ----------- Merge pull request #1234 from donc/ctfe_speedup_arraycmp CTFE: reduce memory usage for array comparisons Compare: https://github.com/D-Programming-Language/dmd/compare/e76704b443f9...fdc299f92775 |
Copyright © 1999-2021 by the D Language Foundation