Branch: Tag:

2014-08-27

2014-08-27 06:47:24 by Stephen R. van den Berg <srb@cuci.nl>

Reorder to reduce memory fragmentation.

3355:    {    struct Buffer_struct *str = THIS;    struct pike_string *s = finish_string_builder( &str->str ); -  init_string_builder_alloc(&str->str, str->initial, 0); +     if( Pike_fp->current_object->flags & OBJECT_CLEAR_ON_EXIT )    s->flags |= STRING_CLEAR_ON_EXIT;    push_string(s); -  +  init_string_builder_alloc(&str->str, str->initial, 0);    }       /*! @decl Buffer|void cut(int index, int|void end_or_none,void|int discard)