Neither of those code snippets run, so I can’t give you a reference for performance. Do you have a reproducible example?