scheinerman/Permutations.jl — pull request #3 by jlapeyre (2014-12-18 16:01:45+00:00)
Title: * rewrite function ^ so that vectors are only allocated

once rather than each time the routine is called recursively.
On branch powlessalloc
modified: src/Permutations.jl

Hi,
I did some tests that show this "^" is more efficient in general. But, the code is a bit (not much) more complicated. So you may want this commit, but maybe not. If used at the command line, say for teaching, you won't notice a difference. If it is called many times in some algorithm, then it may make a difference.