[Merged by Bors] - remove Box from ExclusiveSystemFn#3063
[Merged by Bors] - remove Box from ExclusiveSystemFn#3063R3DP1X37 wants to merge 2 commits intobevyengine:mainfrom R3DP1X37:main
Conversation
|
Interesting, thanks. So this increases monomorphization, but exclusive systems are relatively rare. This should very slightly hurt compile times, but somewhat improve runtime performance? That seems like a fine tradeoff. My main concern is that doing this means that runtime system insertion might become harder down the line. However, it looks like we already do the same thing for non-exclusive systems, so this has my approval. |
|
Thanks for the quick review Alice! |
DJMcNab
left a comment
There was a problem hiding this comment.
This looks correct, and I agree that this change makes sense. The double indirection would otherwise be very unfortunate.
(I don't like that I don't trust our testing infrastructure to know whether exclusive systems not working would be caught, but that's not this PR's problem)
|
bors r+ |
Minor refactor to remove the boxing of the function pointer stored in ExclusiveSystemFn.
Minor refactor to remove the boxing of the function pointer stored in ExclusiveSystemFn.