first optimization, check for duration first, then datetime (only applies to --optime-start)
don't extract datetime of each line.
few minor changes to improve performance in certain edge cases.
small cosmetic change in code.
Merge branch 'mplotqueries-performance' into develop. Fixes #135.