kimor79/gollectd — pull request #1 by dgnorton (2014-10-27 05:39:19+00:00)
Title: Refactoring, unit tests, & performance improvements

- Refactored code that loads types.db into two funcs. One that just loads the file and another that does the data parsing. This makes it easier to test and easier for testing the packet parsing code.

- Added simple packet parsing test...too simple. Needs a lot more fleshing out.

- Added a packet parsing benchmark test. Ran the profiler and changed the Packets function based on that. It parses roughly twice as fast after the change.