Updated Post Scarcity Hardware (markdown)
parent
ff9aa64144
commit
26248a437d
|
@ -32,12 +32,12 @@ Performance doesn't actually improve very much. Consider this function, which is
|
||||||
just map over cells within a row. That's because it isn't worth starting
|
just map over cells within a row. That's because it isn't worth starting
|
||||||
a new thread for each cell, but there may be efficiency gains in
|
a new thread for each cell, but there may be efficiency gains in
|
||||||
running rows in parallel."
|
running rows in parallel."
|
||||||
(\[world function\]
|
([world function]
|
||||||
(map-world world function nil))
|
(map-world world function nil))
|
||||||
(\[world function additional-args\]
|
([world function additional-args]
|
||||||
(into \[\]
|
(into []
|
||||||
(pmap (fn \[row\]
|
(pmap (fn [row]
|
||||||
(into \[\] (map
|
(into [] (map
|
||||||
#(apply function
|
#(apply function
|
||||||
(cons world (cons % additional-args)))
|
(cons world (cons % additional-args)))
|
||||||
row)))
|
row)))
|
||||||
|
|
Loading…
Reference in a new issue