-
Notifications
You must be signed in to change notification settings - Fork 4
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
Try to optimize runner's tight inner loop #2
Comments
On OTP22 seems changing the order of arguments doesn't reduce amount of opcodes in the function, but changes opcodes itself and amount of arguments to those opcodes:
So, the current order of arguments is the optimal one |
It might be problematic that less possible clause
So, putting "main" body as 1st clause with
http://tryerl.seriyps.ru/#id=78b4 So, if we put |
Last option to consider is to run
It should be quite good for small fast functions, but might be problematic for slow ones |
rebar3_bench/src/rebar3_bench_runner.erl
Lines 129 to 134 in 03bb6ec
Should find if it's possible to somehow minimize the amount of work done by the loop.
The text was updated successfully, but these errors were encountered: