faust icon indicating copy to clipboard operation
faust copied to clipboard

rust: declare generated functions as inline able

Open crop2000 opened this issue 10 months ago • 3 comments

I think it should make sense to add a #[inline] declaration to most functions generated by faust. here a example how the generated code would look like: example

The main benefit of explicit inline declaration is that functions can be in-lined across crate boundaries.

there are some things to consider in relation to this as discussed here: https://matklad.github.io/2021/07/09/inline-in-rust.html the small examples and faust2* projects should not be affected by this change as far as I understood.

do you have opinions on this? @bluenote10

crop2000 avatar Dec 10 '24 03:12 crop2000