selwin / python-user-agents

A Python library that provides an easy way to identify devices like mobile phones, tablets and their capabilities by parsing (browser) user agent strings.
MIT License
1.43k stars 196 forks source link

Speed Issues #83

Open sursu opened 6 years ago

sursu commented 6 years ago

The Python implementation of user-parser is very slow. Do you guys use the CPP version of the ua-parser or the Python one? If not, do you think Cython`izing the CPP version would be possible? Also, I am thinking that vectorizing this function would also be beneficial.

selwin commented 5 years ago

Sorry for the late reply. I’m open to suggestions on how we can improve the Performace of this library.

I mainly use this library in conjunction with Django and uses Django’s caching mechanism to speed things up. Maybe we can also do this here.

Have you successfully tried using the CPP version of ua-parser? If you have, it would be great if we can add he instructions to README