Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

tls_codec performance

オープン
#254 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

RustCrypto/formats のほかの issue

RustCrypto/formats の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。