Live data from Hacker News

Beating the L1 cache with value speculation (2021)

mazzo.li

1–10 of 87 posts

Re: Beating the L1 cache with value speculation (2021)

#10
post #6

Neat trick. Though it seems unlikely to be very useful in practice. How often are you going to know the probably value of a pointer without knowing the actual value? I would guess it's pretty rare. Interesting anyway!

It might be useful in cases where you pre-allocate a large array which you don't randomly access and whose structure doesn't change much but sometimes it does. Then you could either reallocate the array and pay a (large) one time cost or use this trick.
Post reply on HN