Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Allocating lmul!

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

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

評価

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

調査の方向性

まず、issue に示されている Julia セッションを再現し、lmul!(PS,F) の繰り返し呼び出しと allocation count を含めて確認します。FastSphericalHarmonics.plan_sph_synthesis と lmul! のエントリポイントを追跡して allocation が想定されたものかどうかを判断します。原因を文書化するか、allocation 関連の具体的な修正を確認できれば完了です。

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

説明

Hi,

This is not really an issue. I am wondering if the following is expected to allocate:

julia> F = zeros(31,61);

julia> PS = FastSphericalHarmonics.plan_sph_synthesis(copy(F))
FastTransforms plan for FFTW Fourier synthesis on the sphere for 31×61-element array of Float64

julia> @time lmul!(PS,F);
  0.000356 seconds (147 allocations: 10.453 KiB)

julia> @time lmul!(PS,F);
  0.000368 seconds (147 allocations: 10.453 KiB)

I am trying to optimize FastSphericalHarmonics.sph_evaluate! by caching the plans and stumbled on this allocation.

主要言語
Julia
スター
282
フォーク
27
平均マージ
53分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

JuliaApproximation/FastTransforms.jl のほかの issue

JuliaApproximation/FastTransforms.jl の issue をすべて見る

似ている issue

Julia の issue をもっと見る

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

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