Not that useful in scenarios besides reading: if you curl your hands in front of your eye and leave a very tiny opening you can create a pinhole that'll make a tiny bit of your view in focus
Photo from Minute Physics demonstrating what you need to do for that:



Have you tried just compiling it with fewer threads? Would almost certainly reduce the RAM usage, and might even make the compile go faster if it you're needing to swap that heavily