-
Notifications
You must be signed in to change notification settings - Fork 4
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
can't use types with internal mutability such as mutex. #13
Comments
Seems that this is an issue related to |
hey thank you for fixing it that quickly ! let's say you wanted a field shared for all instances but the others to be classic soa ? btw this crate rocks ! |
If what you're after is the SOA array with interior mutability, I think a better option would be to conditionally disable |
Following up @alkeryn, is that something that would work for your problem? |
I'm pretty sure with a |
alright, well either way, thank you for this wonderful crate ! on some custom spiking neural network code this crate was 30% faster than either soa-derive or the manual implementation with vec without changing the algo at all. |
Glad to hear you were able to achieve some real-world performance wins. That's gratifying to hear :) |
if you try to use let's say a mutex within a soar struct, the compiler will complain.
The text was updated successfully, but these errors were encountered: