-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supporting V1 dtype #126
Comments
Hi! Thanks for the suggestion. I was thinking about it and I'm trying to decide if this is enough of a gain to be worth it. I presume you are trying to optimize memory consumption, but odds are the output will need to be uint16 or uint32 to contain the final labels, particularly if your input is so large as to justify bit-packing. I also gave this a try: >>> arr = np.zeros([32], dtype='V1')
>>> arr.nbytes
32 It doesn't seem like numpy actually represents things as bit-packed? I would recommend doing Can you tell me a little bit more about your use case? How big the input array is, how many components there are, what are the performance constraints etc.? Will |
My usecase is a I am already passing it as On the other hand, array can be manually packed into |
Interesting use case. Here are my thoughts:
|
I did some experiments with parallel and found I got about a 2.3x improvement with 8 cores. I'm probably doing something wrong though. |
Hey,
Great work with the library!
Is it possible to add support for one-bit dtype (np.dtype('V1')) arrays as input for
cc3d
routines, mainlyconnected_components
?The text was updated successfully, but these errors were encountered: