May 30, 2022 General » Re: DMD 2.100, bring ont he attribute soup | |||
|---|---|---|---|
| |||
...better (add dataflow analysis to eliminate unnecessary allocations, etc.), or we can decide we want... | |||
May 30, 2022 General » Re: DMD and GDC are unnecessarily using heap allocations for closures | |||
|---|---|---|---|
| |||
Out of curiosity, are you linking in phobos statically or dynamically? You can force either... | |||
May 30, 2022 General » Re: DMD 2.100, bring ont he attribute soup | |||
|---|---|---|---|
| |||
...we got to embrace the GC, optimize allocations via escape analysis, and so on (a... | |||
May 30, 2022 General » Re: DMD and GDC are unnecessarily using heap allocations for closures | |||
|---|---|---|---|
| |||
...likely to uncover opportunities to revert GC allocations. For instance:
```d
auto foo() {
return new... | |||
May 30, 2022 General » Re: DMD and GDC are unnecessarily using heap allocations for closures | |||
|---|---|---|---|
| |||
Also it's worth noting you can actually make some of these range patterns nogc... | |||
May 30, 2022 General » Re: DMD and GDC are unnecessarily using heap allocations for closures | |||
|---|---|---|---|
| |||
Ideally the dmd frontend would have a nice reliable IR to do this analysis properly... | |||
May 30, 2022 General » Re: DMD and GDC are unnecessarily using heap allocations for closures | |||
|---|---|---|---|
| |||
...a language-level guarantee that no GC allocations will happen in that function. This guarantee... | |||
May 30, 2022 General » Re: DMD and GDC are unnecessarily using heap allocations for closures | |||
|---|---|---|---|
| |||
(LDC dev) I doubt this will be able to be fixed. @nogc is a frontend... | |||
May 30, 2022 General » Re: DMD and GDC are unnecessarily using heap allocations for closures | |||
|---|---|---|---|
| |||
...LDC wouldn't have the need for a custom pass to revert the GC allocations. | |||
May 30, 2022 General » Re: DMD and GDC are unnecessarily using heap allocations for closures | |||
|---|---|---|---|
| |||
...is actually unable to eliminate all GC allocations in the @nogc code. Maybe I can... | |||
Copyright © 1999-2021 by the D Language Foundation