August 19, 2022 Learn » Re: In-place extension of arrays only for certain alignment? | |||
|---|---|---|---|
| |||
Once you need more size, you can reallocate...values where N doesn't change should only... | |||
August 18, 2022 Learn » Re: Recommendation for parallelism with nested for loops? | |||
|---|---|---|---|
| |||
...writeln(results[$-toPrint..$]);
}
void foo(size_t i, size_t j, int[] results) {
results[i... | |||
August 19, 2022 Learn » Re: Recommendation for parallelism with nested for loops? | |||
|---|---|---|---|
| |||
...are about the same size for each pass...Even if they aren't equal, you'll... | |||
August 18, 2022 Learn » Re: Does D actually support flexible array members? | |||
|---|---|---|---|
| |||
...length static array:
```d
struct ArenaChunk {
size_t size;
ArenaChunk* next;
char[0] memory;
}
```
Then... | |||
August 18, 2022 Learn » Re: Does D actually support flexible array members? | |||
|---|---|---|---|
| |||
...char[] {
char* ptr; //pointer to first element
size_t length;
}
```
Also the allocation code probably... | |||
August 18, 2022 Learn » Does D actually support flexible array members? | |||
|---|---|---|---|
| |||
...s my arena definition:
```
struct ArenaChunk {
size_t size;
ArenaChunk* next;
char[] memory; // flexible array... | |||
August 17, 2022 Learn » Re: In-place extension of arrays only for certain alignment? | |||
|---|---|---|---|
| |||
A 16-byte element size must be put...do this, this doesn't help because at... | |||
August 17, 2022 Learn » Re: In-place extension of arrays only for certain alignment? | |||
|---|---|---|---|
| |||
...Metadata isn't always stored. Plus, it's optimized for the block size. > For example... | |||
August 16, 2022 Learn » Re: In-place extension of arrays only for certain alignment? | |||
|---|---|---|---|
| |||
...Metadata isn't always stored. Plus, it's optimized for the block size. For example... | |||
August 16, 2022 Learn » Re: In-place extension of arrays only for certain alignment? | |||
|---|---|---|---|
| |||
...16 bytes total (on 64 bits): void* + size_t and I see this when I... | |||
Copyright © 1999-2021 by the D Language Foundation