Replies: 4 comments 3 replies
-
For me I would take an approach of logging, like I was suggesting here #896 When there is a fallback to a pure python implementation, it could be nice to log something like "Lib xxx not found, fallback to a python implementation of Y, that will result in a performance drop". So the additional "C" dependencies could remain optional, but it is not using fallback python silently |
Beta Was this translation helpful? Give feedback.
-
@rtobar Do you have an example of such a fallback happening in |
Beta Was this translation helpful? Give feedback.
-
Two other points I'd like to add to this discussion:
|
Beta Was this translation helpful? Give feedback.
-
Another update: for those who haven't measure it, in dpkp/kafka-python#2380 (comment) I show the effects of falling back to the python implementation. In our synthetic benchmarks it was >25x in some cases. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm not sure how much inter-communication there is between this project and
kafka-python
, so I'm opening a separate ticket here to discuss an idea I discussed over there that applies to this project as well. This is more of a discussion really, but I couldn't see the "Discussions" section enabled on this project, so I'm filing it as a "question" issue instead.In dpkp/kafka-python#2380 I mention how during some profiling we observed some bottlenecks around crc32c calculation because, for some reason, the python fallback routines were being used. After doing a deep dive, I found that both this project and
kafka-python
have python fallbacks, while at the same time catering for faster versions of the checksums: this project ships with its own C/Cython-based extension, whilekafka-python
optionally uses thecrc32c
package.My question there, and now here, is: would you consider adding a hard dependency on
crc32c
to avoid having python fallbacks in the first place, while also not having to maintain a C/Cython-based module for this purpose?Please see the above thread for a longer discussion, and thanks in advance for any consideration given to this idea.
Beta Was this translation helpful? Give feedback.
All reactions