Ignore:
Timestamp:
Sep 18, 2006, 5:02:39 AM (19 years ago)
Author:
bird
Message:

o Optimization summary: libc from ~21 seconds -> 7-8 seconds (os2/nt).
o Optimized appending new stuff to variables. (major win)
o Optimized variable memory value allocation avoiding a bunch of

unnecessary copying and allocating.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/variable.h

    r531 r533  
    5959#ifdef CONFIG_WITH_VALUE_LENGTH
    6060    int value_length;           /* The length of the value, usually unused.  */
     61    int value_alloc_len;        /* The amount of memory we've actually allocated. */
     62    /* FIXME: make lengths unsigned! */
    6163#endif
    6264    char *value;                /* Variable value.  */
     
    128130extern void install_variable_buffer PARAMS ((char **bufp, unsigned int *lenp));
    129131extern void restore_variable_buffer PARAMS ((char *buf, unsigned int len));
     132#ifdef CONFIG_WITH_VALUE_LENGTH
     133extern void append_expanded_string_to_variable PARAMS ((struct variable *v, char *value));
     134#endif
    130135
    131136/* function.c */
Note: See TracChangeset for help on using the changeset viewer.