- disable iterative logging.
- localize declaration.
- reduce data looking up.
- use init capa in HashMap to avoid re-hashing.