Thank you Samantha, I think if you text the best way fpr the performance, it will be a great article.
I decided to test another way of thinking this. Here are the results:
with slice and reverse: 83.085ms With one loop: 309.763ms
Source-code and tests are available here.
I though that using one for loop (compared to a chained call using slice & reverse) would be more performant. I was wrong.
What Samantha showed is great work, I'm trying to show alternatives and another way of thinking this through.
Fantastic! Thanks for sharing this! I’ll add this to my notes 👏👏👏
Good work man!
You’re right I should of done test 😅
If someone is reading this and you’ve done test. Drop it in the comments and I’ll add it to my code notes! 💯
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thank you Samantha, I think if you text the best way fpr the performance, it will be a great article.
I decided to test another way of thinking this. Here are the results:
Source-code and tests are available here.
I though that using one for loop (compared to a chained call using slice & reverse) would be more performant. I was wrong.
What Samantha showed is great work, I'm trying to show alternatives and another way of thinking this through.
Fantastic! Thanks for sharing this! I’ll add this to my notes 👏👏👏
Good work man!
You’re right I should of done test 😅
If someone is reading this and you’ve done test. Drop it in the comments and I’ll add it to my code notes! 💯