Would this package be useful in DataFramesMeta?

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
julia
領域
performance

調査の方向性

リンクされている DataFramesMeta の PR 221 を読み、生成関数の最適化と、RuntimeGeneratedFunctions による :(x -> x + 1) のような式の扱いを比較する。繰り返される式がコンパイル済みの lookup を再利用するか確認する;完了条件は、適用可能性について文書化された回答、またはその後の統合方針の決定である。

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

説明

I just finished a big PR in DataFramesMeta to try and reduce latency.

Given an expression of the form

f(:x, :y)

we make an anonymous function

(x, y) -> f(x, y)

This carries a compilation cost of creating the anonymous function. So my PR made an optimization where if it saw f(:x, :y) it would just return f, since it's the same as the anonymous function above.

But more other expressions are still problematic. Consider

:x + 1

This will always have to turn into

x -> x + 1

for purposes of the src => fun => dest syntax in DataFrames.

It looks like this package will let me cash :(x -> x + 1) so that the anonymous function of that form is only compiled once, and later calls are taken from a lookup. Is that correct?

If so, DataFramesMeta seems like a good application of this package.

主要言語
Julia
スター
114
フォーク
19
平均マージ
2時間 42分
マージ済み PR(30日)
1

環境構築

はじめの一歩

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

SciML/RuntimeGeneratedFunctions.jl のほかの issue

SciML/RuntimeGeneratedFunctions.jl の issue をすべて見る

似ている issue

Julia の issue をもっと見る

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

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