trappy: optimize integer conversion in generate_data_dict
trappy: optimize integer conversion in generate_data_dict

generate_data_dict uses try/except for integer conversion. This is expensive
consider the frequency of the calls. Optimize it by using a slightly more
uglier but much fast version of the same. With this I get a speed of ~8.5% in
parsing.

Change-Id: I909ad170756fd284c7d924950945e755880ceb5f
Signed-off-by: Joel Fernandes <89f39a38232ac523c7644e47b6ca6563177e40b4@google.com>
Reviewed-by: KP Singh <d2841bc036e0f1e3090bf6691da4b34cb2d724be@google.com>

bjackman/trappy,bjackman/trappy,ARM-software/trappy,ARM-software/trappy,ARM-software/trappy,ARM-software/trappy,bjackman/trappy,bjackman/trappy