Open
Description
Plan:
- Benchmark current implementations of
from
,prepend
, andappend
. - Implement
_from_array
similar to_from_small_list
but recurse whenarray.length >= 12
. - Implement
_from_iterable
as an iterative version of_from_array
(see Optimize tree construction #108 (comment)). -
See if replacing push loop inNO (because we do not want to keep two copies of the data simultaneously)from
by_from_array([...iterable])
is faster (optimize?). - See if implementing
this.append(iterable)
asthis.concat(from(..., iterable))
improves performance. - Similar for
prepend
.