add comment about copy_queue (non-)usage
This commit is contained in:
parent
04dddcdaa8
commit
cf9fd27ca0
|
@ -121,6 +121,9 @@ impl Node {
|
||||||
Node::alloc(
|
Node::alloc(
|
||||||
arena,
|
arena,
|
||||||
copy_matrix(arena, &matrix),
|
copy_matrix(arena, &matrix),
|
||||||
|
// optimization: copy_queue() not necessary! self.queue is already
|
||||||
|
// allocated on the arena, and this queue just aliases pointers
|
||||||
|
// into self.queue.next
|
||||||
queue,
|
queue,
|
||||||
evaluate(&matrix, queue),
|
evaluate(&matrix, queue),
|
||||||
Some(Edge {
|
Some(Edge {
|
||||||
|
|
Loading…
Reference in New Issue