Ad
  • Default User Avatar

    True, but performance isn't an issue and code clarity is more important. I managed to increase the execution time to over a second by multiplying up both input strings until the length was over 16MiB (each) - if that's likely to occur in production code, it could be tweaked accordingly.