GetFieldContents algorithm is quite slow.
Closed this issue · 2 comments
JosiahOne commented
Sadly, there is no API_GetFieldContents call available, so we're using our own algorithm to accomplish such a task. And although it works (and is incredibly valuable), it is also quite slow. It usually takes 3000-10000 ms to complete.
JosiahOne commented
Well, I'm attempting to use Binary Search to knock down the time, since we were doing a linear search before. Sadly though, API_GetRecordInfo sorts its fields by name instead of fid for some (stupid) reason.
JosiahOne commented
There isn't a way to fix this. However, we now have a GenerateFieldContentsArray method which is much faster when we need to return several fields for any record(s). Closing.