Displaying 1 result from an estimated 1 matches for "array_of_thread_uids".
2018 Oct 02
2
Help for UID THREAD and SORT optimization
...uid of the first set is contained
in one of the elements of the thread messages, we pick it up and push it
in the resulting array.
This is a pseudo-code that shows what we are doing:
array_of_latest_messages_in_thread = []
array_of_sorted_uids = [n,n,n,n,...] // UID SORT (REVERSE DATE) UTF-8 ALL
array_of_thread_uids = [n,[n,n],n,[n,n,n],[n,n],n,n,...] // UID THREAD
(REFERENCES) UTF-8 ALL
foreach(array_of_sorted_uids as s_uid){
??? foreach(array_of_thread_uids as t_uids){
??????? if(t_uids contains s_uid){ // or a function to loop recursively
t_uids to search if a leaf is equal to s_uid
??????????? array_o...