Windows 10 appears to not be aware that the Ryzen processor consists of two individual CPU core groups. Communication between cores that sit on two separate CCX groups is significantly slower (by the factor of 2 and more). Within a CCX group CPU cores can communicate very quickly with each other. The speed of the crossbar is linked to the speed of your system memory (RAM).
The two groups are interconnected with with a 256-bit wide bi-directional crossbar. The physical cores are placed on the CPU die in two groups of 4 cores each, the so called CCX (CPU Complex). The AMD Ryzen CPU consists of 16 CPU cores - 8 physical and 8 virtual (emulated) cores.
added workaround for serial codes not being saved correctly.