fix a slowdown when opening files
add todo
Merge pull request #1028 from devoncarew/devoncarew_fix_slowdown

Devoncarew fix slowdown