Coder Social home page Coder Social logo

Comments (5)

nathanmesser avatar nathanmesser commented on July 18, 2024

Have you got some sample code that tries to do this and is very slow?

from incanter.

nathanmesser avatar nathanmesser commented on July 18, 2024

I've found that I can get the speed on creating a scatter plot for 300k items down from around 20s on my machine, to almost instant, by switching from an XYSeriesCollection to a DefaultXYDataset. However I need to do more digging to see what the downsides of this would be.

from incanter.

alexott avatar alexott commented on July 18, 2024

@nathanmesser do you have any code snippets that allows us to use DefaultXYDataset?

from incanter.

MawiraIke avatar MawiraIke commented on July 18, 2024

I've found that I can get the speed on creating a scatter plot for 300k items down from around 20s on my machine, to almost instant, by switching from an XYSeriesCollection to a DefaultXYDataset. However I need to do more digging to see what the downsides of this would be.

Has the scatter-plot method been optimised already? It seems like it creates a plot of 300k items in about 577ms on the first run on my side. The second and subsequent runs take about 200ms each. Might I be measuring a different time? I am using

(time (view (scatter-plot data)))

I am about to test if DefaultXYDataset is faster, I have time i can throw at it if there is no progress yet. I see that scatter-plot still implements XYSeriesCollection.

from incanter.

MawiraIke avatar MawiraIke commented on July 18, 2024

Using a DefaultXYDataset takes fairly the same amount of time on my side as the XYSeriesCollection but while i was doing more research, i stumbled across the AbstractXYDataset and FastScatterPlot which might both be faster. I don't think it's necessary to implement them as already the implemented solution is 'fairly' fast.

from incanter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.