General

Profile

marcandre (Marc-Andre Lafortune)

Issues

open closed Total
Assigned issues 11 124 135
Reported issues 25 174 199

Projects

Project Roles Registered on
Ruby Developer 09/10/2009
Backport186 Developer 09/10/2009
Backport187 Developer 09/10/2009
Backport191 Developer 09/10/2009
Backport192 Developer 10/05/2011
Backport193 Developer 10/05/2011
Backport200 Developer 02/17/2013
Backport21 Developer 12/21/2013
Backport22 Developer 12/19/2014
CommonRuby Developer 12/21/2012
Ruby 1.8 Developer 09/10/2009
Ruby master Developer 09/10/2009

Activity

Today

04:40 PM Ruby master Bug #17017: Range#max & Range#minmax incorrectly use Float end as max
jeremyevans0 (Jeremy Evans) wrote in #note-10:
> With current Ruby, you should use an endless range instead of range...
marcandre (Marc-Andre Lafortune)
03:37 PM Ruby master Bug #17017 (Open): Range#max & Range#minmax incorrectly use Float end as max
jeremyevans0 (Jeremy Evans) wrote in #note-7:
> koic (Koichi ITO) wrote in #note-6:
> > I encountered a breaking ch...
marcandre (Marc-Andre Lafortune)
04:11 PM Ruby master Bug #17031: `Kernel#caller_locations(m, n)` should be optimized
Sure
```
Calculating -------------------------------------
short_backtrace 28.315k (± 7.1%) i/s - 14...
marcandre (Marc-Andre Lafortune)

07/14/2020

07:07 PM Ruby master Bug #17031 (Open): `Kernel#caller_locations(m, n)` should be optimized
`Kernel#caller_locations(1, 1)` currently appears to needlessly allocate memory for the whole backtrace.
It alloca...
marcandre (Marc-Andre Lafortune)
01:46 PM Ruby master Bug #17030: Enumerable#grep{_v} should be optimized for Regexp
nobu (Nobuyoshi Nakada) wrote in #note-4:
> Even without a block, `grep` sets `$~` to the last match result.
I ag...
marcandre (Marc-Andre Lafortune)
03:37 AM Ruby master Bug #17030: Enumerable#grep{_v} should be optimized for Regexp
You are right for `grep` with a block, we can't necessarily optimize, but we should optimize `grep` without a block, no? marcandre (Marc-Andre Lafortune)

07/13/2020

08:27 PM Ruby master Bug #17030: Enumerable#grep{_v} should be optimized for Regexp
Code to reproduce by @fatkodima:
```ruby
require 'benchmark-ips'
require 'benchmark-memory'
arr = %w[foobar foobaz ...
marcandre (Marc-Andre Lafortune)
08:26 PM Ruby master Bug #17030 (Open): Enumerable#grep{_v} should be optimized for Regexp
Currently:
```ruby
array.select { |e| e.match?(REGEXP) }
# about 3x faster and 6x more memory efficient than
...
marcandre (Marc-Andre Lafortune)

07/02/2020

08:56 PM Ruby master Feature #16986: Anonymous Struct literal
Without expressing an opinion on the proposal (yet), I'd like to point an easy way to avoid having to use `fetch` all... marcandre (Marc-Andre Lafortune)
08:15 PM Ruby master Feature #17004: Provide a way for methods to omit their return value
jeremyevans0 (Jeremy Evans) wrote in #note-13:
> Due to Sequel::Dataset#insert's flexible API, it would be hard to s...
marcandre (Marc-Andre Lafortune)

Also available in: Atom