happyleavesaoc / aoc-mgz

Age of Empires II recorded game parsing and summarization in Python 3.
MIT License
197 stars 42 forks source link

Speed up "info" command (CLI) #47

Closed ollide closed 3 years ago

ollide commented 3 years ago

The CLI's info command currently takes almost twice as long as necessary, because the header is parsed two times.

I aimed for a fix with minimal changes. If there's anything missing, please let me know.

happyleavesaoc commented 3 years ago

This should work, thanks! This command was created before get_header() existed.