manuelbieh / geolib

Zero dependency library to provide some basic geo functions
MIT License
4.23k stars 341 forks source link

Port to AssemblyScript some code for performance #219

Open darky opened 5 years ago

darky commented 5 years ago

On one project, instead of using isPointInPolygon I rewrite some code to Rust and compile it to WebAssembly like this toy project: https://github.com/darky/rstar-wasm

Performance gain 30-200 RPS -> 4700-5100 RPS

Maybe need to rewrite some performance critical parts with https://github.com/AssemblyScript/assemblyscript

You can drastically increase performance of geolib ;)

manuelbieh commented 4 years ago

Interesting. Maybe I will give it a try in v4.