[FR] JSON AoS<->SoA redesign

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
cpp
領域
tooling

調査の方向性

まず、現在のJSON出力と、issueで影響を受けるものとして特定されているtools/ディレクトリを確認してください。数値フィールドに対して意図されているAoS↔SoA表現と、外部ツールがそれをどのように利用すべきかを明確にしてください。完了の条件は、2つのJSON形式を必要とせず、スキーマが繰り返しを整数配列として表現することです。

索引モデルが issue の本文から書いたものです。

説明

Currently, we emit each repetition separately into JSON (and all at once apparently).
This is quite bloaty.

If we ever want to support iteration-as-repetition thing (and i think we do),
and perhaps if we want to AoS<->SoA our internal structs (and i think we do, especially if we do iteration-as-repetition),
i think we need to change the JSON schema.
The numberic fields (times, counters) need to become arrays of integers.

The tools/ will support both schemes, but external tooling will need similar updates.
I don't think we'd want to support two different json formats?

@dmah42 thoughts?

主要言語
C++
スター
10.5k
フォーク
1.8k
平均マージ
1日 15時間
マージ済み PR(30日)
28

環境構築

はじめの一歩

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

google/benchmark のほかの issue

google/benchmark の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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