Clojure program not exiting when finishing last statement?

后端 未结 2 2087
滥情空心
滥情空心 2021-01-17 09:53

What would cause a Clojure program to not immediately exit upon finishing the last statement in the main function?

All I did was to change a (doall (map ...))<

2条回答
  •  深忆病人
    2021-01-17 10:09

    According to the docs:

    ...[pmap is O]nly useful for computationally intensive functions where the time of f dominates the coordination overhead.

    So this probably means there is more overhead using pmap for your scenario than using map. The pmap operations are probably taking a little extra time to finish up before the code after pmap fires.

提交回复
热议问题