kLabUM / rrcf

🌲 Implementation of the Robust Random Cut Forest algorithm for anomaly detection on streams
https://klabum.github.io/rrcf/
MIT License
488 stars 111 forks source link

no need for an array intermediate to return this statistic #104

Open mwhitworth opened 4 months ago

mwhitworth commented 4 months ago

Using an array intermediate results in more memory churn that the garbage collector has to deal with (it can be tricky to exactly attribute this) - an equivalent implementation just determines max on each cycle instead.