acteng / atip

Active Travel Infrastructure Platform
https://acteng.github.io/atip/
Apache License 2.0
22 stars 4 forks source link

Browse page performance #454

Open dabreegster opened 7 months ago

dabreegster commented 7 months ago

Loading 18MB of scheme data and filtering is still reasonably fast (a few seconds), but lag is noticeable. I did a little bit of profiling and have some ideas for improvements. I don't think any of this is important to do yet, but wanted to record these notes somewhere.

dabreegster commented 7 months ago

When we update filters, we're modifying a per-feature property, which forces maplibre to reprocess all the GJ data. I tried using feature state, but:

So...

dabreegster commented 7 months ago
dabreegster commented 7 months ago

Oh yeah, and

dabreegster commented 7 months ago

Also tried out updateData; it'll get us a little bit of a win, but I have to make sure line endpoints have unique IDs. https://osmus.slack.com/archives/C01G3D28DAB/p1706714321758859 for notes / benchmark results