I asked ChatGPT to also tell me the percentage of arrays that are empty after I do this. I'm consistently getting around 40% or above. This is showing me just how useful this optimization actually is for my application, and how much repetition there was in my earlier code.