ValvePython / dota2

🐸 Python package for interacting with Dota 2 Game Coordinator
http://dota2.readthedocs.io
201 stars 32 forks source link

find_proto function should cache results #11

Open rossengeorgiev opened 7 years ago

rossengeorgiev commented 7 years ago

https://github.com/ValvePython/dota2/blob/eb8d814b6404448a0fe40f2ebb37e020cac0edda/dota2/msg.py#L46

m-bo-one commented 7 years ago

@rossengeorgiev, how about default functools cache https://gist.github.com/DeV1doR/366d7135559763dade0cd4940f14ba48 ?

rossengeorgiev commented 7 years ago

Yep, that's one option. Not sure if I want to add an unmaintained backport. cachetools seems like a much better choice.