-29% CPU by replacing in_array() with isset()
After testing a data import feature, I was able to significantly improve a function that is called many, many times. The PHP application in this case uses double-writing because it is a progressive migration of a legacy. The data to import for the feature comes from a file and, for each l (...)