A simple and elegant solution
On a related note, here are some interesting articles.
My solution is to run away ... at least for a moment
What do you do when you hit a wall? When you found a bug and you can't figure out how to fix it. You spend hours and hours in front of the screen and nothing seems to work. Sometimes this can be the worse nightmare for a programmer and putting more hours trying to fix it won't make a difference.
The secret is, there is no secret
The secret to lose 10 pounds in a week, the secret to be more productive, the secret to appear on Google's first page, the secret to become a millionaire. I used to read those, but now they seem more like a cheap attempt to make money off of desperate people. On the web, spam site took those books and refurbished them into click bait articles who exist for the sole purpose of generating more page views and ad impressions.
This certainly is a challenge and there are many ways to approach it. The easiest of them all is to find a computer with as much RAM as possible and the fastest CPU. Throwing money at a problem certainly will help you solve many problems. But not all of us have this luxury.