#23 share distributions

Offen
vor 1 Jahr geöffnet von j3tracey · 0 Kommentare
Justin Tracey kommentierte vor 1 Jahr

Especially if we end up using weighted distributions, we should be sharing identical distributions across the whole client/peer, rather than generating a new one for each conversation. The easiest way of doing this is probably doing a pass of all the config files to find identical dists, making our distribution enums store 'static refs, and using Box::leak().

Especially if we end up using weighted distributions, we should be sharing identical distributions across the whole client/peer, rather than generating a new one for each conversation. The easiest way of doing this is probably doing a pass of all the config files to find identical dists, making our distribution enums store `'static` refs, and using [`Box::leak()`](https://doc.rust-lang.org/std/boxed/struct.Box.html#method.leak).
Anmelden, um an der Diskussion teilzunehmen.
Kein Meilenstein
Niemand zuständig
1 Beteiligte
Laden…
Abbrechen
Speichern
Hier gibt es bis jetzt noch keinen Inhalt.