@olwi, that creates a closure, if you use that in a loop it will be significantly slower than an inline template. See my [bench](https://github.com/mratsim/Arraymancer/blob/master/benchmarks/implementation/proc_method_closure_bench.nim) in Arraymancer. # Results with -d:release on i5-5257U (dual-core mobile 2.7GHz, turbo 3.1) # Proc with ref object 0.099993 # Closures 2.708598 # Methods 0.3122219999999998
- Do we really like the ...It templates? Stefan_Salewski
- Re: Do we really like the ...It templates? Araq
- Re: Do we really like the ...It templates? mratsim
- Re: Do we really like the ...It templates? Varriount
- Re: Do we really like the ...It templates... Skrylar
- Re: Do we really like the ...It temp... olwi
- Re: Do we really like the ...It ... mratsim
- Re: Do we really like the ..... Arrrrrrrrr
- Re: Do we really like the ..... cdome
- Re: Do we really like the ..... jlp765
- Re: Do we really like the ..... doofenstein
- Re: Do we really like the ..... Udiknedormin
- Re: Do we really like the ..... niofis
