18 ms·
I can get behind the general recommendations outlined in this article (with the caveat that they're only to be used if you don't need every last drop of perform
by ComputerGuru 4y ago
I can get behind the general recommendations outlined in this article (with the caveat that they're only to be used if you don't need every last drop of performance, you're not writing a library, and you find the current async situation difficult) except for the complete cop-out of implementing each handler routine as not just a function (which could at least be nested/local) but as a completely separate type implementing a trait.
That's fine if all your transforms are strictly defined, often reused, and you're just choosing between them but if many of your transforms are just one-offs then that's an insane amount of boilerplate and a very clunky approach. It's also antithesis to the OP's claimed "just get things done" approach since you'll always be second-guessing whether something should be a separate transform type or if it should be extending an existing one, etc.