Rails 6 includes a change
method that optimised memory usage
time required to perform advance operation.
advance operation on
used to duplicate options (arguments) passed
These options were used up
deleted from the
Before Rails 6
As we can see,
there is really no need to
options has received in the argument.
After Rails 6
With the pull request
the behavior was changed
not duplicate the
options has as given below.
This improved the speed of
it allocates less objects (thus memory)
in order to perform the operation.
this pull request
Mentioning Benchmark performance below for the reference.