Skip to content
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

Apply @muladd more specifically? #1203

Open
ranocha opened this issue Aug 11, 2022 · 6 comments
Open

Apply @muladd more specifically? #1203

ranocha opened this issue Aug 11, 2022 · 6 comments

Comments

@ranocha
Copy link
Member

ranocha commented Aug 11, 2022

I'm just annoyed again by Revise not playing nicely with @muladd when struct definitions are included. What do you think about applying @muladd more specifically to function definitions where it makes sense?

@sloede
Copy link
Member

sloede commented Aug 11, 2022

Is there really no other way to enable muladd globally? Are you able to estimate how many functions would be affected?

@ranocha
Copy link
Member Author

ranocha commented Aug 11, 2022

Alternatively, we could try to move all type definition out of the @muladd blocks.

@sloede
Copy link
Member

sloede commented Aug 11, 2022

Alternatively, we could try to move all type definition out of the @muladd blocks.

I feel like this is even worse. That would force us to rearrange code in files only for performance considerations. I think in this case I'd rather have @muladd added to individual functions, although we should make clear whether it goes before or after @inline

@ranocha
Copy link
Member Author

ranocha commented Aug 11, 2022

Is there really no other way to enable muladd globally?

I don't see another way right now...

Are you able to estimate how many functions would be affected?

Probably everything that does non-trivial computations - quite a lot, I guess?

@jlchan
Copy link
Contributor

jlchan commented Aug 11, 2022

Would delaying adding muladd for files with experimental features make sense? Revise and muladd have been annoying for me too, but removing the muladd blocks during development has largely fixed that.

@ranocha
Copy link
Member Author

ranocha commented Aug 11, 2022

That would help when adding new files but

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants