Skip to content
This repository was archived by the owner on Oct 7, 2022. It is now read-only.
This repository was archived by the owner on Oct 7, 2022. It is now read-only.

Performance comparison between lseqarray and lseqtree #7

Description

@Chat-Wane

Comparing perf between lseqarray and lseqtree raised this issue: lseqarray is far better on insertions at the end of the sequence. Obviously, lseqarray is very efficient in this case because it does not require any shifting in the underlying array (and very inefficient in the antagonist inserting behaviour: requires N shiftings). On the other side, lseqtree uses a tree as underlying model. Thus, each object in the first array have sub-arrays etc... Therefore, the shiftings are bounded by the sub-array length. It implies better perf on insertion at the beginning and at random position (making lseqtree safer to use). However, inserting at the end is less efficient.... Problem is: from an algorithmic point of view, they should be even. As consequence, it is possible to improve a lot the efficiency of the code.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions