Tíquete #41025

バイナリデータ読み込み速度向上案

: 2020-12-04 16:22 Última Atualização: 2021-01-10 14:23

Relator:
(Anônimo)
Dono:
Tipo:
Estado:
Fechado
Componente:
(Nenhum)
Marcos:
(Nenhum)
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Fixed
Arquivo:
Nenhum

Details

PriceData.csのGetPricesメソッドですが、バイナリデータ読み取りの終了をtry-catchで都度完了させているように見えます。

287行目 while (true)を下記に変更することで例外処理が抑えられ、処理速度がかなり早くなります。(こちらのマシンでは読み込み毎に3倍程度)

var baseStream = b.BaseStream; //while (true) while (baseStream.Position != baseStream.Length)

gitに慣れていないのでチケット発行にて恐縮ですが、よろしければ改修ご検討ください。また、見当違いの投稿内容でしたら恐縮です。 (twitter@hiro0156)

Ticket History (2/2 Histories)

2020-12-04 16:22 Updated by: None
  • New Ticket "バイナリデータ読み込み速度向上案" created
2021-01-10 14:23 Updated by: darai
  • Resolução Update from Nenhum to Fixed
  • Dono Update from (Nenhum) to darai
  • Estado Update from Aberto to Fechado
Comentário

取り込みました

Attachment File List

No attachments

Editar

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login