bug 343346: optimise resource finding
2 files changed