[Issue 20892] [REG2.086] ElfFile comparison suboptimal

2020-06-02 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20892

--- Comment #2 from johanenge...@weka.io ---
("your specific code": don't fully understand, as this is druntime's code :))

https://github.com/dlang/druntime/blob/ebfe05ea945f9ef0eb56b7f3b02a07df2fc64901/src/core/internal/elf/io.d#L287

Yes, I think this instance can be fixed with an explicit
TypedMMapRegion.opEquals.

--


[Issue 20892] [REG2.086] ElfFile comparison suboptimal

2020-06-01 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20892

Walter Bright  changed:

   What|Removed |Added

 CC||bugzi...@digitalmars.com

--- Comment #1 from Walter Bright  ---
Does this mean your specific code can be fixed by adding a MMapRegion.opEquals
function?

Given that this was merged nearly a year ago, I expect there'd be more silent
breakage if it was reverted.

--