Why is Darktable editing not real-time? (What would need to be done?)

yes, dt is processing only the visible pixels only at the current scale (zoomed in: just a portion, zoomed out: just low res)

unfortunately thats not completely true - i found that zooming in can result in a degration of performance (see Denoise profiled gets very slow in darkroom when using toneequalizer · Issue #3081 · darktable-org/darktable · GitHub) in dependency of used modules.