PHP’s native dedupe function, array_unique, can be slow for large amount of input. Here I’m going to talk about a simple function that performs the same task but which runs a lot faster. Often, people spout PHP optimisation advice that is incredibly misguided, so I want to make it clear up-front that you should be […]
↧