[Issue 17881] Provide mechanism to preallocate memory from the GC

2023-10-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17881 Steven Schveighoffer changed: What|Removed |Added See Also||https://issues.dlang.org/sh

[Issue 17881] Provide mechanism to preallocate memory from the GC

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

[Issue 17881] Provide mechanism to preallocate memory from the GC

2018-10-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17881 Stanislav Blinov changed: What|Removed |Added CC||stanislav.bli...@gmail.com --- Comment

[Issue 17881] Provide mechanism to preallocate memory from the GC

2017-10-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17881 --- Comment #12 from Rainer Schuetze --- The current GC already does something in that regard as it pre-assigns a new memory page to a free-list of elements of the size of the last request. The GC locking overhead can be reduced

[Issue 17881] Provide mechanism to preallocate memory from the GC

2017-10-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17881 --- Comment #11 from Steven Schveighoffer --- (In reply to Andrei Alexandrescu from comment #10) > This issue should be closed. A good allocator should be able to handle > repeated allocations of the same size without this kind

[Issue 17881] Provide mechanism to preallocate memory from the GC

2017-10-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17881 --- Comment #10 from Andrei Alexandrescu --- (In reply to Steven Schveighoffer from comment #8) > What I am looking for, > though, is the high-level API of "I have 20 million T's I want to allocate, > give me them properly

[Issue 17881] Provide mechanism to preallocate memory from the GC

2017-10-11 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17881 --- Comment #9 from safety0ff.bugz --- (In reply to Steven Schveighoffer from comment #8) > Internally, I think something like this is needed. What I am looking for, > though, is the high-level API of "I have 20 million T's

[Issue 17881] Provide mechanism to preallocate memory from the GC

2017-10-11 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17881 --- Comment #8 from Steven Schveighoffer --- (In reply to safety0ff.bugz from comment #7) > I think the API should obviously should have the size of the elements as a > separate arguments and provide as much information as

[Issue 17881] Provide mechanism to preallocate memory from the GC

2017-10-11 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17881 safety0ff.bugz changed: What|Removed |Added CC|

[Issue 17881] Provide mechanism to preallocate memory from the GC

2017-10-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17881 Alexandru Razvan Caciulescu changed: What|Removed |Added CC|

[Issue 17881] Provide mechanism to preallocate memory from the GC

2017-10-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17881 --- Comment #6 from Steven Schveighoffer --- (In reply to Rainer Schuetze from comment #5) > A slightly simpler API could be to add allocating N same-sized chunks from > the GC that returns them in a free-list-like chain. I

[Issue 17881] Provide mechanism to preallocate memory from the GC

2017-10-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17881 Rainer Schuetze changed: What|Removed |Added CC||r.sagita...@gmx.de

[Issue 17881] Provide mechanism to preallocate memory from the GC

2017-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17881 --- Comment #4 from Steven Schveighoffer --- Stevens-MacBook-Pro:testd steves$ cat testpreallocate.d struct S { S *next; } void main() { version(freelist) { S* head = null; foreach(i; 0 ..

[Issue 17881] Provide mechanism to preallocate memory from the GC

2017-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17881 --- Comment #3 from Andrei Alexandrescu --- >The use case is different than for GC.allocate. The semi-joke was this is all needed. >I want to fill in a structure of nodes, I know I'm going to fill it in with >10,000 elements,

[Issue 17881] Provide mechanism to preallocate memory from the GC

2017-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17881 --- Comment #2 from Steven Schveighoffer --- The use case is different than for GC.allocate. I want to fill in a structure of nodes, I know I'm going to fill it in with 10,000 elements, so I'm going to allocate them all in a

[Issue 17881] Provide mechanism to preallocate memory from the GC

2017-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17881 Andrei Alexandrescu changed: What|Removed |Added CC||and...@erdani.com