- Knuth puts sentinels at the end of an array to avoid having to bounds check in the search.
- Knuth uses the register keyword.
- Knuth custom writes each data structure for each application.
When I got a bit older I realized people were doing this with performance as well. We just call this part architecture, and that part Best Practices.
And a compiler will never make sentinels for you. Most of these tricks still work and have a measurable difference.