Comments (2)
(This is why there's no pypi release yet 😉 )
Regex compilation isn't cached. I didn't decide whether to compile when loading from yaml, or to lazily compile & cache when first used. The lazy mode is better for short runs but will use more memory. It's implemented in commit 5afc3c4.
Secondly, it'll always be at least an order of magnitude slower than the libraries you mention because of the device model parsing, which the other libraries don't support. If you don't need device info, then those libraries are the way to go, and I'd have used one of those myself instead.
from device_detector.
Wow, your last commit improves the performances a lot !!
Thanks for your answer
from device_detector.
Related Issues (20)
- The Package identifing galaxy gear as smartphone HOT 1
- Unable to detect device HOT 3
- add regex dependency to setup.py
- Regularly outputs "xxx does not exist" errors (0.8 from pip) HOT 5
- The following UAs crash the library (0.8 from pip) HOT 1
- Do this project have plan to support java language? HOT 1
- Regex issue while importing device_detector HOT 1
- unable to recognize salesforcemobilesdk HOT 1
- is_bot() returns True then False for the same user agent HOT 3
- Adding new yml file HOT 1
- UnicodeDecodeError HOT 3
- Detector does not seem to work in multithreaded env HOT 1
- Encoding problems on Windows computers HOT 4
- Problem with parsed data object after parsing the same user agent HOT 1
- No licence in repo HOT 2
- ImportError occurs when I run device_detector.py HOT 3
- ZeroDivisionError when parsing some strings
- The ReadMe.md references of a device_brand_name() function
- Running on raspberry pi uses 100% cpu and takes 1 minute to complete HOT 1
- self.all_details is None (?)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from device_detector.