Counting the number of files to be indexed (m_provider->size()) can
be significantly more costly than checking if the next batch is empty.
Also the m_stop condition was checked twice.
Details
Details
- Reviewers
ngraham - Group Reviewers
Baloo - Commits
- R293:ed8cdf3d32f1: [FileContentIndexer] Remove duplicate condition check for loop break
Diff Detail
Diff Detail
- Repository
- R293 Baloo
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Hmm, changing the loop to while (true) would seem to reduce some safety if none of the break conditions are reached.