Closed dennisweissmann closed 8 years ago
👍 to all changes, thanks a lot 🎉 . Good to have a performance test too. Was on my TODO list. I'll merge this as is, only thing I may change is the 100k lines, may reduce to 10k, since on my machine the high performing version is 48s 😄.
no probs on "what you haven't done" this is great 😄. Will get round to those at some point.
Thanks :) (and thanks for providing it, it's really a cool project 👍) Oh sorry, yeah that's a little too much then :D (didn't know my iMac was that fast).
Another thing I forgot to mention I didn't do (because I didn't know if it's for a purpose I don't get): There's also an executable target in there (but it doesn't compile since there's no application code anywhere). If it's not of any use you might want to delete it, too. :)
yep it's totally redundant at the moment :) removed.
all addressed as of c0d75ce thanks again for all the work. 👍
Awesome! 👍💯 You're welcome!
File Structure:
Code:
split:
to an iterative version which improves performance by 36x from 180 seconds to 5 (I love reduce but if the accumulator is an array the array gets copied each time the closure is executed which sums up ...)Tests:
What I haven't done yet: