Opinions aren't something that Stack Overflow works well with. How are we to rate one person's opinion over another? If you're looking for a code review, we have
Code Review, but you should be sure to read their
help center to make sure you can make your question on topic over there (they have very specific rules, just like we do). Performance optimization is generally about trade offs; you can make it faster, but it uses more memory; or it uses less memory, but it's slower. Decide what's most important to you and optimize for that. —
Heretic Monkey 48 secs ago