January 21, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
ok... in the interest of corecting the code I posted previously... ... here is a version... | |||
January 21, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
turns out the problem has nothing to do with appender... It's actually this line... | |||
January 21, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
On Friday, 21 January 2022 at 03:50:37 UTC, forkit wrote: You're using... | |||
January 21, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
actually something not right with Appender I think... 100_000 records took 20sec (ok) 1... | |||
January 21, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
:-)
// --
void ProcessRecords
(in int[][int][] recArray, const(string) fname)
{
auto file = File(fname, "w");
scope... | |||
January 20, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
[...] std.array.appender is your friend. T -- Meat: euphemism for dead animal. -- Flora | |||
January 21, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
oops. looking back at that code, it seems I didn't write what i intended... | |||
January 21, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
Oh. this was intentional, as I wanted to write once, and only once, to the... | |||
January 20, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
On 1/20/22 17:35, forkit wrote: > module test; > @safe Does that make just... | |||
January 21, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
oops. nasty mistake to make ;-) module test; @safe should be: module test; @safe: | |||
Copyright © 1999-2021 by the D Language Foundation