0
0

More than 1 year has passed since last update.

高速 scatter plot 描画(apache-arrow + regl 利用)

Last updated at Posted at 2022-04-02

こんにちは。
apache-arrow (IPC) データをプロットしました1。データ (columnar typed array) を取得しそのまま regl の WebGL バッファーへ書き込むことにより高速描画を行なっています。

この例のデータの取得(ダウンロード)進行中は、データは逐次分割されて取得され(10,000行単位)、その都度、データを追加して描画しています(ストリーム型処理)。

ただし、データの取得自体はネットワークを通したダウンロードなので高速ではありません2 3

output.gif

ソースおよび実行例はこちら、

  1. 参考:Efficiently loading massive D3 datasets using Apache Arrow (Chris Price, scottlogic.com)

  2. したがって、この例のような大量データの場合(68 万点の scatter plot)、ダウンロードに通常は 1 秒弱を要すようで、開始後一瞬で全データを描画完了とはいきません。

  3. 同じデータをローカルファイルとして読み込むと、開始後ほぼ一瞬で全データを描画完了できます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0