[Gtkradiant] [Bug 406] XMAP Module is super slow when saving maps

gtkradiant@zerowing.idsoftware.com gtkradiant@zerowing.idsoftware.com
Mon, 25 Feb 2002 18:02:29 -0600


http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=406





------- Additional Comments From hydra@hydras-world.com  2002-02-25 18:02 -------
nope changing sprintf() to a strlen, strcpy, a set and then another strcpy 
doesn't make much difference.  Can't see much else repeated non-xml lib code 
that might make a difference except maybe using sprintf() once instead doing 
repeated calls to str_append_token like this:

      str_from_float(buf, pPatch->ctrl[i][j].xyz[0]);
      str = str_append_token(str, buf);
      str_from_float(buf, pPatch->ctrl[i][j].xyz[1]);
      str = str_append_token(str, buf);
      ...

and this:

    sprintf(buf, "%i", (int)face->texdef.shift[0]);
    str = str_append_token(NULL, buf);
    sprintf(buf, "%i", (int)face->texdef.shift[1]);
    str = str_append_token(str, buf);
    ...

I'm gonna try these changes, and remove a few for() loops and replace with
long lines of code, just to see what happens...




------- You are receiving this mail because: -------
Whoops!  I have no idea!