I returned. It took a lot of time to study the new compiler for Blender. This is a beta version therefore there are some problems with shadows, physics and some other little things. But the render now takes 10 times less time. Now I can do animations in 4K and with some variants of clothes without any problems.
Animation 1:
Animation 2: