Speed up osync_db database queries 
Speed up osync_db database queries 

g_list_append calls g_list_last() internally, which is traverse the
entire listn every time. Calling g_list_prepend() and later reverse 
the entire list, is more efficient. 

good: O((2)N) bad: O(N²)



git-svn-id: e31799a7ad59d6ea355ca047c69e0aee8a59fcd3@3285 53f5c7ee-bee3-0310-bbc5-ea0e15fffd5e

ianmartin/opensync,ianmartin/opensync