Updated Post Scarcity Hardware (markdown)
parent
e0db55e7ac
commit
d30c40a77d
|
@ -31,12 +31,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
|
||||
a new thread for each cell, but there may be efficiency gains in
|
||||
running rows in parallel."
|
||||
([world function]
|
||||
(\[world function\]
|
||||
(map-world world function nil))
|
||||
([world function additional-args]
|
||||
(into []
|
||||
(pmap (fn [row]
|
||||
(into [] (map
|
||||
(\[world function additional-args\]
|
||||
(into \[\]
|
||||
(pmap (fn \[row\]
|
||||
(into \[\] (map
|
||||
#(apply function
|
||||
(cons world (cons % additional-args)))
|
||||
row)))
|
||||
|
|
Loading…
Reference in a new issue