-
Notifications
You must be signed in to change notification settings - Fork 36
Description
Hi, we're considering pulling in this SDK in several Python projects. Because we build those projects in pretty bare containers, the compiled dependencies here (mmh3, and cryptography from requests[security]) mean that we need to install some additional OS packages at build time. That's not a showstopper, but some questions came up:
-
Is
requests[security]needed? From https://github.com/psf/requests/pull/4825/files, it seems like it's probably not needed anymore, since fixes have been introduced in the standard library in Python 2.7.9 and 3.4.3. -
There is already fallback code in case
mmh3isn't installed:, but thepython-sdk/optimizely/bucketer.py
Lines 16 to 19 in d3ffe33
try: import mmh3 except ImportError: from .lib import pymmh3 as mmh3 mmh3requirement doesn't seem to be optional. Could it be made optional? -
Do you have any details on the performance penalty of using the pure-Python Murmur3 implementation, as compared to the compiled version? I suspect that, in our use case (AWS Lambda, process per request), it may not be an issue.