Rob Spoor wrote:Another issue may be SSL certificates. Those may not be available for a wildcard domain, and not every company feels comfortable using Let's Encrypt.
fred rosenberger wrote:
as to "Is there a way to optimize the code?" I would say "Don't". There's no need to. i'm pretty sure this code would run pretty dang fast.
fred rosenberger wrote:Unless you have SPECIFIC and DOCUMENTED timing requirement, you're always better served writing clean, simple code that's easy to understand. When you go back to it in a week or a month (or in my case, an hour), you don't want to have to struggle to figure out what the heck you did...