Updated Post Scarcity Hardware (markdown)

Simon Brooke 2017-01-02 23:38:02 +00:00
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 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)))