code-corps-api icon indicating copy to clipboard operation
code-corps-api copied to clipboard

Benchmark Enum.flat_map vs Enum.map |> List.flatten in GitHub.API

Open joshsmith opened this issue 7 years ago • 0 comments

Problem

I just read (oddly in benchee's README) that Enum.map |> List.flatten is 1.83x slower than Enum.flat_map.

We should maybe evaluate if we can replace this logic in GitHub.API by benchmarking it.

joshsmith avatar Oct 30 '17 17:10 joshsmith