Changeset 2056 for trunk/src/kmk/rule.c


Ignore:
Timestamp:
Nov 4, 2008, 4:25:19 AM (17 years ago)
Author:
bird
Message:

kmk: some MBs of memory during building by freeing up the chopped up command lines after we're done with them. (Code not perfect, but wtf., it saves me 7 MBs (out of 45), a bunch of faults and turns out to using less cpu time...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/rule.c

    r1993 r2056  
    404404      r->cmds->commands = xstrdup (p->commands);
    405405      r->cmds->command_lines = 0;
     406#ifdef CONFIG_WITH_MEMORY_OPTIMIZATIONS
     407      r->cmds->refs = 1000;
     408#endif
    406409    }
    407410}
     
    489492  if (new_pattern_rule (r, override))
    490493    r->terminal = terminal;
     494#ifdef CONFIG_WITH_MEMORY_OPTIMIZATIONS
     495  commands->refs = 1000;
     496#endif
    491497}
    492498
Note: See TracChangeset for help on using the changeset viewer.