#377 addSeries takes too long - notify flag required


If one adds several empty series via org.jfree.data.xy.XYSeriesCollection.addSeries this consumes a lot of time since the listeners are excecuted each time for nothing.

I suggest to implement a notify flag like the one in org.jfree.data.general.Series that can be set via setNotify().

A less preferable alternative would be a method addAllSeries() that can add several series while doing only one listener call. But that would force the caller to collect all series before adding them to the dataset.


  • David Gilbert

    David Gilbert - 2013-11-21

    Thanks for the suggestion. For the upcoming 1.0.17 release, I have committed a notify flag in all datasets that will allow suppressing the dataset change events while making bulk updates.

  • David Gilbert

    David Gilbert - 2013-11-21
    • status: open --> closed
    • assigned_to: David Gilbert
    • Group: -->

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks