tls_codec performance
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- リファクタリング
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- rust
- 領域
- performance
調査の方向性
tls_codec/benches/tls_vec.rs から始めて、既存のベクトルシリアライゼーションベンチマークを確認します。実際のユースケースのベンチマークを追加し、その後、issue に記載されているアロケーション、バッファのリサイズ、要素ごとのシリアライゼーションのコストを調査します。関連するパフォーマンス特性が測定され、妥当な最適化がベンチマーク結果によって裏付けられていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hey @franziskuskiefer question for you, how is the current encoding / decoding performance? If there are places you think we can help make improvements let us know.
Originally posted by @tomleavy in https://github.com/RustCrypto/formats/issues/250#issuecomment-975838633
That's a good question. Before being able to answer the question we'd need to know what the performance is and understand if its any good.
There's a very basic benchmark here thttps://github.com/RustCrypto/formats/blob/4d0c0530be501e00dd1fbc25024db02eeffd669b/tls_codec/benches/tls_vec.rs. I wrote it to look at the performance impact of (de)serialising each element vs using the specialised ByteVec.
- Write benchmarks for real-world scenarios to measure performance.
There are two things that I think are worth looking at.
- Memory allocations are the most expensive operation. Are there any unnecessary allocations? Is any buffer resized unnecessarily?
- The existing benchmarks show that invoking (de)serialise for each element in a vector takes significant amount of time. Can this be optimised somehow?
- 主要言語
- Rust
- スター
- 338
- フォーク
- 188
- 平均マージ
- 4日 6時間
- マージ済み PR(30日)
- 15
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
RustCrypto/formats のほかの issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 86/100
RustCrypto/formats#2389 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
RustCrypto/formats#2366 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
RustCrypto/formats#2430 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
RustCrypto/formats#2428 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
RustCrypto/formats#2427 · コメント 1 件 ·
RustCrypto/formats の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
bug good first issue package: quic
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
-
`dora trace view` sends a non-canonical full UUID as-is, so a valid trace ID shows "No spans found" オープンcli coordinator rust
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
area: tasks enhancement good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Jason-jo17/Polybench#15 · コメント 1 件 ·