#23 share distributions

開啟中
j3tracey1 年之前創建 · 0 條評論

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).
登入 才能加入這對話。
未選擇里程碑
未指派成員
1 參與者
正在加載...
取消
保存
尚未有任何內容