Hacker News new | ask | show | jobs
by sweetjuly 720 days ago
Terrifying, I love it :) How was the performance in the end? Did you get a good speculation success rate?

It'd be cool to predict which resources are speculation safe (ie the cache headers don't permit it, but the content in practice doesn't change) and speculate those resources but not ones which you have repeatedly had a speculation abort (ie actual dynamic resources). If your predictor gets a high enough hit rate, you could probably do okay with just a single instance/no snapshot and use an expensive rollback mechanism (reload the whole page non-speculatively?).