performance improvement: add cache
add profile cache
remove console.log
Merge pull request #49 from Yaliang/master

performance improvement: add cache layout