July 11, 2013 General » Re: D graph library -- update | |||
|---|---|---|---|
| |||
...nearly 10 even with the insert of nodes one at a time. Profiling shows that... | |||
July 04, 2013 General » Re: optimized immutable containers | |||
|---|---|---|---|
| |||
...you basically have is a "chain" of nodes, and each list simply references a part... | |||
July 03, 2013 General » Re: optimized immutable containers | |||
|---|---|---|---|
| |||
...ref semantics: Just shared owner ship of nodes... EG: -------- import std.stdio, std.container; void... | |||
July 03, 2013 General » Re: optimized immutable containers | |||
|---|---|---|---|
| |||
...new list with head + list. Making the nodes garbage collected would save on memory usage. | |||
June 26, 2013 General » Re: why allocators are not discussed here | |||
|---|---|---|---|
| |||
...refers to a freed node. Maybe the nodes could be refcounted, though a downside there... | |||
June 26, 2013 General » Re: why allocators are not discussed here | |||
|---|---|---|---|
| |||
...list that contains both GC-allocated nodes and malloc() nodes. That's just a bomb... | |||
June 24, 2013 Learn » Re: Trouble with lockstep | |||
|---|---|---|---|
| |||
...auto degreeRank(NodeT)(NodeT nodes)
{
size_t[] x;
foreach(node; nodes)
x ~= node.links.length... | |||
June 22, 2013 Learn » Re: how to compare immutable ints? | |||
|---|---|---|---|
| |||
...but assert (nodes[root2.pg.pgNo] == root2.pg.pgNo); should have read assert (nodes[root2... | |||
June 18, 2013 Learn » Re: how to compare immutable ints? | |||
|---|---|---|---|
| |||
...but assert (nodes[root2.pg.pgNo] == root2.pg.pgNo); should have read assert (nodes[root2... | |||
June 15, 2013 Learn » how should I implement this list? | |||
|---|---|---|---|
| |||
...code will generate 100s of millions of nodes, and each node on average is used... | |||
Copyright © 1999-2021 by the D Language Foundation