Skip to content

appendData performance issue simple fix #678

Description

@dizcza

Problem

The line 456

mData.remove(0);

of BaseSeries.appendData function makes an internal copy of the whole array on each call. This is because mData is initialized as an ArrayList.

Solution

A simple solution would be changing the mData from ArrayList to LinkedList. A better solution would encorporate some sort of a fixed-size list to hide this routine into a simple instruction mData.add(dataPoint).

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

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions