[dmd-internals] [D-Programming-Language/dmd] 0b1985: Avoid useless memory allocation when comparing str...

GitHub noreply at github.com
Mon Oct 29 06:23:22 PDT 2012


  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 at 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 at 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 at 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


More information about the dmd-internals mailing list