-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
remove array specialization #2271
remove array specialization #2271
Conversation
This should get tested |
agreed. As I said, I still need to do some performance testing. |
Benchmarks:
Seems to be well within the noise (especially considering that a single variable array is literally the worst case since then any overhead would be magnified. |
That's using |
Fully noise. In a fresh REPL for each line of output:
After:
|
Looks like that's actually measurable? But it's small enough now that we can do this. It used to be like a 10 second difference, I'm happy that's solved. |
and also, the other reason why this PR clearly is needed is that it found a bug in |
With FastBroadcast.jl, we expect the only benefit of for loops over broadcasting to be in the macroexpand/lowering time (which makes this extra code a pure loading pesimization since lowering doesn't care about types so having both versions is strictly worse than having only 1). I need to do some tests to make sure this doesn't regress performance, but I'm pretty sure it won't.