]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
add FIXME for totally slow unacceptable code
authorRudolf Polzer <divverent@xonotic.org>
Thu, 10 Oct 2013 17:43:33 +0000 (19:43 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 10 Oct 2013 17:43:33 +0000 (19:43 +0200)
qcsrc/menu/xonotic/serverlist.c

index e0260e8d3866a09788196d4526013b9dc9e581ca..24694d5f48fe5cd6eea23046ffef8a11b0b3b352 100644 (file)
@@ -624,7 +624,7 @@ void XonoticServerList_draw(entity me)
                // entire list, otherwise there is no way to know which item is first in its category.
 
                float cat, x;
-               for(i = 0; i < itemcount; ++i)
+               for(i = 0; i < itemcount; ++i) // FIXME this loop is TOTALLY unacceptable (O(servers)). Make it O(categories * log(servers)). Yes, that is possible.
                {
                        cat = gethostcachenumber(SLIST_FIELD_CATEGORY, i);
                        if(cat)