General

Profile

DmitryBochkarev (Dmitry Bochkarev)

Issues

open closed Total
Assigned issues 0 1 1
Reported issues 0 1 1

Activity

09/28/2017

03:32 PM Ruby Feature #13884: Reduce number of memory allocations for "and", "or" and "diff" operations on small arrays
Send request to Github https://github.com/ruby/ruby/pull/1709 DmitryBochkarev (Dmitry Bochkarev)

09/24/2017

12:36 PM Ruby Feature #13884: Reduce number of memory allocations for "and", "or" and "diff" operations on small arrays
Can anyone review this patch? DmitryBochkarev (Dmitry Bochkarev)

09/11/2017

04:13 PM Ruby Feature #13884: Reduce number of memory allocations for "and", "or" and "diff" operations on small arrays
The fixed remark about comparison method. Added benchmarks and results.
After this benchmark, i've noticed there are no profits when array size between 17 and 32 elements, but some degradation of speed for "diff" operation.
## Resu...
DmitryBochkarev (Dmitry Bochkarev)
03:39 AM Ruby Feature #13884: Reduce number of memory allocations for "and", "or" and "diff" operations on small arrays
Eregon (Benoit Daloze) wrote:
> Note that this would change the semantics as it uses #== and not #eql? to compare elements.
> ...
Yes, it is, I've missed this part, will fix.
DmitryBochkarev (Dmitry Bochkarev)

09/09/2017

02:22 PM Ruby Feature #13884 (Closed): Reduce number of memory allocations for "and", "or" and "diff" operations on small arrays
Very often, arrays are used to filter parameters and to select interesting items from 2 collections and very often these collections are small enough, for example:
~~~ ruby
SAFE_COLUMNS = [:id, :title, :created_at]
def columns
...
DmitryBochkarev (Dmitry Bochkarev)

Also available in: Atom