question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Event management is a bottleneck with big datasets

See original GitHub issue

I’m creating a lot of circle markers in a layer using a geoJson of 13000+ features.

L.geoJson(data, {
    pointToLayer: function (feature, latlng) {
        return L.circleMarker(latlng);
    }
}).addTo(map);

this takes about 14 seconds in my browser (it’s OK, it’s a lot of data!). I profiled the CPU to understand what was taking so long, and I found that just this for takes 12 seconds.

https://github.com/Leaflet/Leaflet/blob/a97b87d0333fdc4b0c18d7b2ee9c15b393ae76ff/src/core/Events.js#L110

I think that using a different strategy to store the listeners, we could improve a lot the amount of data that Leaflet is able to insert in an acceptable amount of time.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
IvanSanchezcommented, Oct 26, 2016
1reaction
perliedmancommented, Oct 25, 2016

Hm, I actually thought I reopened it yesterday, but apparently must have missed the button. Sorry about that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How Big Data Is Revolutionizing the Event Industry - Superevent
Let's say you collect data one year that identifies bottlenecks and frustrating lines. This information would help you design next year's event in...
Read more >
Big data, fast: Avoiding Hadoop performance bottlenecks
Meanwhile, some organizations are using complex event-processing engines to goose their Hadoop performance.
Read more >
Bottleneck prediction and data-driven discrete-event ...
This work demonstrates how to provide prediction capabilities to a bottleneck framework which uses very basic input data and as such is relevant...
Read more >
3 Ways PheedLoop Solves Event Production Bottlenecks
In a process management context, a bottleneck is a point in a determined process where the flow of tasks gets impaired or even...
Read more >
Identify bottlenecks with value stream mapping - IBM
Teams can use value stream maps to evaluate processes and identify bottlenecks, waste, and improvement opportunities.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found