2 ms·
In general you can't hoist the length check out of the loop because of the possibility that the length might change during the loop. Proving that the length doe
by pcwalton 14y ago
In general you can't hoist the length check out of the loop because of the possibility that the length might change during the loop. Proving that the length doesn't change during the loop is quite difficult; in general this requires alias analysis.