Proposed Changes to the Range API for Phobos v3

Steven Schveighoffer schveiguy at gmail.com
Tue Sep 24 12:25:01 UTC 2024


On Monday, 23 September 2024 at 08:20:59 UTC, Eyal Lotem wrote:
> Hey,
>
> In continuation to the discussion about how 3-method ranges do 
> not apply at the conference, I wanted to refer you to Teodora 
> Serbanescu's work on ranges, showing how a single-method range 
> protocol is better optimized[1] than the 3 method range 
> protocol.
>
> Also, here's some benchmark code[2] of a repeated composition 
> of map/filter, and if you look at the generated assembly, you 
> see how well opApply is optimized vs. the phobos range which 
> even in -release -O4 remains non-inlined.

Thank you for posting this!

-Steve


More information about the Digitalmars-d mailing list