🚧 Experimenting with some performance improvements.

This commit is contained in:
Andrey Antukh 2019-09-20 17:30:03 +02:00
parent 31ffa73bda
commit 4cf7a48567
16 changed files with 299 additions and 267 deletions

View file

@ -23,6 +23,6 @@
[{:keys [sender point] :as message}]
(let [point [(:x point) (:y point)]
results (kd/nearest tree point 1)
[[x y] d] (first results)
[x y] (ffirst results)
result (gpt/point x y)]
(impl/reply! sender {:point (gpt/point x y)})))