# perf\(netflow-db\): raise only distinct weighted masses and spread q values across threads · flambo/atlantis

[View on GitCafe](https://git.cafe/flambo/atlantis/commit/79da58169529b89856c5b27784cc18c70db933ac)

Repository: [flambo/atlantis](https://git.cafe/flambo/atlantis)

Visibility: public

Requested revision: 79da58169529b89856c5b27784cc18c70db933ac

Requested commit: 79da58169529b89856c5b27784cc18c70db933ac

Commit: 79da58169529b89856c5b27784cc18c70db933ac

Tree: 48432dfc06a69125549da6c6835699ea1fec72cd

Author: flamboh

Committer: flamboh

## Message

```
perf(netflow-db): raise only distinct weighted masses and spread q values across threads

Weighted structure maps each moment's masses to indices into the sorted distinct masses, so every q computes one powf per distinct mass. Structure rows for different q values are independent and now run in parallel on the caller's rayon pool. Output stays byte-identical: unweighted on the fixtures and 20 real windows, weighted on 42 packet, byte and IPv6 inputs.

```

## Parents

- [c34a31836224961f5fe0a0448530ab12b446b439](https://git.cafe/flambo/atlantis/commit/c34a31836224961f5fe0a0448530ab12b446b439?format=markdown)

[Source at this commit](https://git.cafe/flambo/atlantis/tree/79da58169529b89856c5b27784cc18c70db933ac?format=markdown)
