Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enormous CPU / Time/ Memory consumption on some data #932

Closed
Nikita-Pavlenko opened this issue Nov 15, 2023 · 1 comment
Closed

Enormous CPU / Time/ Memory consumption on some data #932

Nikita-Pavlenko opened this issue Nov 15, 2023 · 1 comment

Comments

@Nikita-Pavlenko
Copy link

This, relatively small and simple data

  1. Consumes 1.5 Gigabytes (GB) memory on trying to create DefaultPlotPanel
  2. Takes nearly 2 minutes on relatively fast PC
 val rand = java.util.Random()
    val n = 90000
    val data = mapOf<String, Any>(
        "x" to List(n) { "Some average text $it" },
        "y" to List(n) { rand.nextGaussian() }
    )

    val plot = letsPlot() + themeClassic() + geomLine(data = data, showLegend = false, sampling = samplingNone) {
        x = "x"
        y = "y"
    }

Main.zip

@alshan
Copy link
Collaborator

alshan commented Nov 17, 2023

The reason for disappointing performance found to be a huge number of ticks and gridlines along the x-axis.
After the fixes you will see significant performance improvement it terms of both, building time and memory consumption.

@alshan alshan closed this as completed Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants