チケット #45904

astr_vadd_at() + fc_vsnprintf(): Single internal buffer

登録: 2022-10-17 22:49 最終更新: 2024-02-09 15:41

報告者:
担当者:
(未割り当て)
チケットの種類:
状況:
オープン
コンポーネント:
マイルストーン:
優先度:
5 - 中
重要度:
5 - 中
解決法:
なし
ファイル:
なし

詳細

In case of fallback fc_vsnprintf(), we produce the text first to our own internal buffer, from which it's copied to caller's buffer. If that caller is astr_vadd_at(), that buffer is another internal buffer, and the string gets copied again to final astr.

It should be easy to rearrange this so it skips one of those internal buffers (one copy), and, for platforms (Windows) relying on the fallback fc_vsnprintf(), such an optimization on constantly used low level functionality would likely be worth the effort.

Before this, #45903 is a priority, though. (so this might be something for 3.0.6?)

チケットの履歴 (7 件中 3 件表示)

2022-10-17 22:49 更新者: cazfi
  • 新しいチケット "astr_vadd_at() + fc_vsnprintf(): Single internal buffer" が作成されました
2022-10-27 04:53 更新者: cazfi
2023-01-30 13:00 更新者: cazfi
2023-03-26 15:36 更新者: cazfi
2023-06-10 07:22 更新者: cazfi
コメント

I have a patch for this, but it has proven not to be reliable. I don't want to take such risk of regression on the coming release.

2023-11-10 15:08 更新者: cazfi
2024-02-09 15:41 更新者: cazfi

添付ファイルリスト

添付ファイルはありません

編集

このチケットにコメントを追加するには、ログインが必要です » ログインする