-
-
Notifications
You must be signed in to change notification settings - Fork 13
Reduce resource allocation, especially for repeating tasks #25
Copy link
Copy link
Closed
Labels
featureNew feature or requestNew feature or request
Description
Needs #8 to be very useful.
Operations can be a lot faster if they're in place - because
- Some vectorized operations are faster if they're in-place
- No new array has to be allocated
- No new NDArray object has to be allocated (objects are very heavy in Godot)
Since keyword arguments are not supported in gdscript right now (see #10), the best place to add in-place operations might be the object itself (with object.a syntax). This also makes it clear which object is the one affected by the operation. This is not behavior that is present in numpy and xtensor. But it might be useful for NumDot given its environment.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or request