optimization for issue #35 to avoid a bit many useless write events on
Windows.