moritzuehling/demoinfo-public — pull request #21 by moritzuehling (2014-12-15 21:57:48+00:00)
Title: Created parsing of the packet-entities without huge dictionaries

As we all know, long strings as keys in dictionaries are slow, especially when many beginnings are similar. As a result, our code became slow.

We speed it up (the old code was ~150% times as slow across all our tests for a full demo-parse) much, and have now a cool interface.

This will be merged as soon is it is feature-complete, currently (as of December 15th) weapons aren't attributed yet.

How you access the properties with the new code can be seen [here](https://github.com/moritzuehling/demoinfo-public/blob/nodict/DemoInfo/DemoParser.cs#L378)

Small excerpt:
playerEntity.FindProperty("m_iHealth").IntRecived += (sender, e) => p.HP = e.Value;
p

Any feedback is welcome!