Skip to content

Add threading for radon#15

Open
roflmaostc wants to merge 1 commit into
JuliaImages:masterfrom
roflmaostc:master
Open

Add threading for radon#15
roflmaostc wants to merge 1 commit into
JuliaImages:masterfrom
roflmaostc:master

Conversation

@roflmaostc

@roflmaostc roflmaostc commented Mar 27, 2023

Copy link
Copy Markdown
Member

Hi,

just a little improvement but worth it:

julia> x = randn((512,512));

julia> b = -256:255
-256:255

julia> a = range(0, π, 100);

# master
julia> @time radon(x, a, b);
  0.394537 seconds (2 allocations: 400.047 KiB)

julia> @time radon(x, a, b);
  0.393676 seconds (2 allocations: 400.047 KiB)

# this PR
julia> @time radon(x, a, b);
  0.126976 seconds (163.83 k allocations: 17.340 MiB, 59.36% compilation time)

julia> @time radon(x, a, b);
  0.053204 seconds (120 allocations: 8.993 MiB)


julia> Threads.nthreads()
12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant