The choice between for or while is pretty much a matter of readability and personal preference. I personally tend to use for loops only for dealing with situations where a numerical index is important (arrays and sometimes lists). For iterators, I tend to use while() loops, because it looks more natural to me.
I don't think there's any difference in performance pers? but you always need to be aware of when and how many times your condition gets evaluated.
Even though it is a personal choice, I would have made the decision based on the following:
I would have used 'for' loop if i know exactly how much times i need to loop, say i need loop 30 times.
But if i don't know when a condition would be met, I would prefer to use a 'while' loop.
Kumar