I would like to see a "getting started" page that covers the time and space
footprint of each major data type.  It could, for example, tell the reader
that adding an element to the end of a list is O(n), but that prepending
an element is O(1).

It could also talk about persistent data structures and how that affects how
expensive it is (in time and space) to make a modified copy of a binary, map,
tuple, etc.

I would also be happy to have notes in the documentation for common library
functions, explaining anything unusual about their performance.  For example,
although the Enum.sort_by/3 entry contains performance hints of this nature,
the Enum.sort/2 entry does not.  So, an incautious reader might well miss it.

-r

-- 
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 elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/421A8942-30B4-48E8-B324-94CD926F644C%40gmail.com.

Reply via email to