search for: array_of_sorted_uids

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

2018 Oct 02
2
Help for UID THREAD and SORT optimization
...we loop through the other uids set with all the thread relations. If the 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 recu...