[erlang-questions] Pmods, packages, Unicode source code and column numbers in compiler - what will happen in R16?
Yurii Rashkovskii
yrashk@REDACTED
Wed Oct 17 16:57:59 CEST 2012
I suspect that with your proposal the performance drop will be significant
as tuple module call handling is done in C these days and according to my
measurements, it's actually pretty damn fast (I think it's about in the
neighbourhood of 1% of the time it takes to do the actual call)
So the loss might be significant. Also, removing or having this feature
doesn't affect you — you don't use it. Why do you want to get rid of
something you don't use but others do?
On Wednesday, October 17, 2012 4:01:34 AM UTC-7, Loïc Hoguin wrote:
>
> Now what if the tuple call support was removed and was simply replaced
> in the parse transform by code similar to the following?
>
> if is_tuple(Var) -> M = element(1, Var), M:fun();
> true -> Var:fun()
> end
>
> It would still work, it would cleanup OTP completely, and I don't think
> the performance loss would be too bad. After all, people caring *this
> much* about performance wouldn't use tuple calls to begin with, right?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20121017/8d6881ef/attachment.htm>
More information about the erlang-questions
mailing list