[Issue 18899] destroy is inefficient for small structs

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18899 Iain Buclaw changed: What|Removed |Added Priority|P1 |P4 --

[Issue 18899] destroy is inefficient for small structs

2018-08-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18899 Seb changed: What|Removed |Added CC||greensunn...@gmail.com --

[Issue 18899] destroy is inefficient for small structs

2018-06-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18899 Nick Treleaven changed: What|Removed |Added CC||n...@geany.org --- Comment #10 from Nick

[Issue 18899] destroy is inefficient for small structs

2018-05-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18899 --- Comment #9 from Manu --- True. Anyway, I'm just playing devils advocate. I agree, it should do an element copy for small structs. --

[Issue 18899] destroy is inefficient for small structs

2018-05-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18899 --- Comment #8 from Steven Schveighoffer --- (In reply to Steven Schveighoffer from comment #7) > See the generated AST ...generated *assembly* --

[Issue 18899] destroy is inefficient for small structs

2018-05-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18899 --- Comment #7 from Steven Schveighoffer --- I'm not sure that it is. But we aren't calling memcpy anyway, we are calling _d_arraycopy, not inlined. See the generated AST from Mike's example. --

[Issue 18899] destroy is inefficient for small structs

2018-05-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18899 --- Comment #6 from Manu --- memcpy should be an intrinsic, which is implemented using magic... --

[Issue 18899] destroy is inefficient for small structs

2018-05-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18899 --- Comment #5 from Steven Schveighoffer --- (In reply to Manu from comment #4) > Yes, that's what I'm saying :) ... you're not happy with memcpy, do want > element-copy? It's more that I want to copy the one int that is in the

[Issue 18899] destroy is inefficient for small structs

2018-05-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18899 --- Comment #4 from Manu --- Yes, that's what I'm saying :) ... you're not happy with memcpy, do want element-copy? --

[Issue 18899] destroy is inefficient for small structs

2018-05-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18899 --- Comment #3 from Mike Franklin --- Yes, `dest[] = src[]` gets lowered to _d_arraycopy, which ultimately calls memcpy View ASM here: https://run.dlang.io/is/izCLp0 _d_arraycopy implementation here:

[Issue 18899] destroy is inefficient for small structs

2018-05-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18899 Mike Franklin changed: What|Removed |Added CC||slavo5...@yahoo.com

[Issue 18899] destroy is inefficient for small structs

2018-05-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18899 Manu changed: What|Removed |Added CC||turkey...@gmail.com --- Comment