Forum Discussion

blairkei's avatar
blairkei
Copper Contributor
Nov 10, 2020

PS array performance >40K entries

Hi I'm trying to find the fastest way to search a large array (40K entries) for a value. However, I'm struggling with the way in which the array is working.   I read in all AD users as shown below...
  • blairkei's avatar
    blairkei
    Nov 10, 2020

    Joe_Cauffiel Thanks for the alternative solution. My next step was to switch over to using a HASH array but it still does not explain why .contains is taking 2ms and .where is taking 1000ms when they are both using the same search criteria and scanning through the array. I'm wondering if I am missing an option on the ".where" somehow.

     

Resources