This change prevents writing share/rpcauth/__pycache__/*.pyc
, which is especially useful for out-of-source builds when the source directory is supposed to be read-only.
Also see #19385 (comment).
I believe that performance concerns can be disregarded in this case.