search for: s_uid

Displaying 1 result from an estimated 1 matches for "s_uid".

Did you mean: st_uid
2018 Oct 02
2
Help for UID THREAD and SORT optimization
...rray. 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_of_latest_messages_in_thread.push(s_uid) ??????????? break ??????? } ??? } } We have also made some little op...