Back in the 1990's when fractals were a big thing and computers were not very powerful, the go-to tool for exploring fractals was a highly optimized integer engine called `fractint`.
In the final form it supported many types of fractals via a domain-specific language. You can still download the source from https://www.fractint.org/.
Porting this framework to your garden might be worthwhile?