On 9 Jun 2017, 14:28 +0200, Wiebe-Marten Wijnja <[email protected]>, wrote:
> > We could change `Enum.sort` to use `&Kernel.lte?/2` by default, rather than > `&<=/2`. Although this might have slight efficiency implications for existing > applications, I think it would uphold the Principle of Least Surprise better. > This would have huge performance implications. Enum.sort/1 and Enum.sort/2 have completely different implementations. Enum.sort/2 is about 2.5 times slower (when provided with &<=/2 as comparator). Michał. -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/36612a44-9a3b-4a97-8fcd-081159e9f622%40Spark. For more options, visit https://groups.google.com/d/optout.
