I am currently working on an application that is responsible for calculating random permutations of a jagged array.
Currently the bulk of the time in the applicati
The faster way to copy objects is not to copy them at all - have you considered this option? If you just need to generate permutations you don't need to copy data on each one - just change the array. This approach will not work well if you need to keep on results of previous calls. In any case review your code to see if you are not copying data more times that you have to.