Re: [elixir-core:11721] Performance of local function capture

2024-03-26 Thread 'Rudolf Manusadzhian' via elixir-lang-core
lang/otp/pull/6963. > > > Le dim. 24 mars 2024 à 01:50, 'Rudolf Manusadzhian' via elixir-lang-core < > elixir-l...@googlegroups.com> a écrit : > >> Hi there! Might be a naive question. >> >> Why don't we treat all local captures as external? Like at compile time,

Re: [elixir-core:11721] Performance of local function capture

2024-03-26 Thread 'Rudolf Manusadzhian' via elixir-lang-core
ne > remains very small: https://github.com/erlang/otp/pull/6963. > > > Le dim. 24 mars 2024 à 01:50, 'Rudolf Manusadzhian' via elixir-lang-core < > elixir-l...@googlegroups.com> a écrit : > >> Hi there! Might be a naive question. >> >> Why don't w

Re: [elixir-core:11721] Performance of local function capture

2024-03-26 Thread 'Rudolf Manusadzhian' via elixir-lang-core
21f3b19f8af9d9d63a30618cdafeaa6367883#diff-3a3b83d8acad1d3b6faed87ba471843f4424b22c26c179bf1d86a87a880e8223R74-R93 > > Even though, as far as I know, recent versions of Erlang > have optimizations to make sure the overhead of lambdas like this one > remains very small: https://github.com/erlang/otp/pull/6963. > > > Le dim. 2

[elixir-core:11719] Performance of local function capture

2024-03-23 Thread 'Rudolf Manusadzhian' via elixir-lang-core
Hi there! Might be a naive question. Why don't we treat all local captures as external? Like at compile time, if it's possible, we could treat */0* as *&__MODULE__.fun/0* and get a free performance boost, if in the end they behave same. I was going thought the docs for :telemetry.attach/4