Minor efficiency inprovements #78

Merged
merged 4 commits into from Dec 7, 2013

Projects

None yet

2 participants

@pichi

Hi,
I have just go through code and spot some places which I think can be simplified and improved little bit.
Please review and pull.
With best regards
Hynek Vychodil

pichi added some commits Nov 27, 2013
@pichi pichi Transform lists:reverse(X) ++ Y to lists:reverse(X, Y)
It's 10-50% faster (typically 25-40%) and halves memory GC pressure.
It has small effect to overall performance (26.9s vs 28.7s in proper_tests)
but low hanging fruit and just bothers me.
622eda2
@pichi pichi Simplify zip/2 function.
Tail call recursion + lists:reverse/1 is no longer fastest on all
platforms.
8ecc03a
@pichi pichi Process parallel job results in same order.
First spawned processes should be scheduled in same order and also they
results or fails will be in same order in message queue. This code is
simpler and makes more efficient processing of results or killing in error
case.
70bf371
@pichi pichi Simplify add_exports/1 transformation. 2da2027
@kostis
Collaborator

Thanks for your pull requet. All parts of it with the exception of the zip/2 change are clear improvements.

We could discuss/argue about the zip/2 change, but I have better things to do...

I will merge it as is. Thanks again!

@kostis kostis merged commit 7d6a02e into manopapad:master Dec 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment