Check file size before checking content

This might also mitigate the "file in use" problem but might require more memory
why not check file size first, then check file modified time?
would you like give me a hint? thank you. :)