some optimization

These changes boost git-table for 20% on some random project i.e.

$ time git-table HEAD~200..HEAD > /dev/null