Skip to content

Optimize tree construction #108

Open
@make-github-pseudonymous-again

Description

Plan:

  • Benchmark current implementations of from, prepend, and append.
  • Implement _from_array similar to _from_small_list but recurse when array.length >= 12.
  • Implement _from_iterable as an iterative version of _from_array (see Optimize tree construction #108 (comment)).
  • See if replacing push loop in from by _from_array([...iterable]) is faster (optimize?). NO (because we do not want to keep two copies of the data simultaneously)
  • See if implementing this.append(iterable) as this.concat(from(..., iterable)) improves performance.
  • Similar for prepend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    perfThis issue is about improving performance of the implementation in general

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions