code-corps / code-corps/code-corps-api

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

Open
#1,141 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Elixir
Stars
234
Forks
82
PR merge metrics
No merged PRs in 30d

Description

# 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.