0
Julia Slow?
Has anyone dabbled in Julia before? I just tried tinkering with it and for being advertised as super fast when I tried to plot just a line it took 8 seconds!?!?!?
7 Respostas
0
I've been looking around and it seems more people are complaining about Plots being slow. Most of this slowdown is frontloaded, so rendering second plot should be very fast. Still, it's mostly known problem and apparently working solutions are a bit too complicated for me to understand.
+ 2
Do you mean the Julia programming language or do you mean the Julia Set fractal?
If you mean the Julia Set fractal, the slow time to plot could be related to your drawing procedure. The underlying calculation is usually very fast but if you draw each point using a tiny rectangle or circle, yeah that could be in the order of 100 times slower than writing to an off-screen pixel data array.
Max iterations being many 1000 can make Julia Set very slow to calculate but there isn't much need to do that if you just want the aesthetic appeal of the pattern.
I implemented a fractal viewer at:
https://code.sololearn.com/WVhoMHzy3K81
It starts showing a Sololearn-inspired fractal but you can select Julia Set from the dropdown menu.
I have a Mandelbrot Set fractal example using GPU code at:
https://code.sololearn.com/WiH4n0rrvD1B/
It could be adapted for Julia Set quite easily and would render every frame in a tiny fraction of a second.
+ 1
BlazingMagpie it was faster the second time 🤔
+ 1
It runs slow first time around for some reason. There's a technical explanation for this but I'm too lazy to fetch it right now. Maybe I'll come back later with the info
0
Josh Greig i was talking about Julia lang but this is a super neat viewer!
0
Plot a line? You mean graphics? What are you using for graphics? Or are you using Plots package?
0
BlazingMagpie i was just using the Plots packages and the example used in the docs. https://docs.juliaplots.org/latest/tutorial/