C++ - loop optimization with Sentinel May 20, 2016 loginacrocontext, email, display_nameacrocontext, first_name, last_name It is possible to make the loop faster by using an guarded value so it doesn’t need to check the variable validation or extran comparing. https://en.wikipedia.org/wiki/Sentinel_node