The OpenSCAD kernel is significantly overrated in my opinion. Many operations take ages to compute or are not possible at all
Ok if you want to generate a couple of cubes, but if you want anything advanced the kernel quickly falls apart
The openscad-nightly is lightning-fast, but makes occasional occlusion errors.
Assuming you make all the necessary adjustements in preferences.
It's switched to a new backend https://github.com/elalish/manifold
Which you can also use directly instead by writing C++. Trivial operations are two orders of magnitude faster and complex ones every faster.