Linux is better if you only have 4GB of RAM. But, if you absolutely must use Windows 10, then you may try "increasing" its performance by disabling many of the telemetry stuff using this batch script https://gist.github.com/vip3rc0de/a0d2d90f52f9e7c90de0
Also this powershell script https://github.com/clong/MakeWindows10GreatAgain
Also turn off animations and "Fade" in Advanced System Settings > Advanced(Tab) > Performance Settings > Visual Effects. That always makes things feel snappier.