From: Gerd Moellmann Date: Wed, 18 Oct 2000 11:59:20 +0000 (+0000) Subject: (allocate_string) [GC_CHECK_STRING_BYTES]: Call X-Git-Tag: emacs-pretest-21.0.90~784 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a42943e93e368b67e438a4cb370a355c51c5f9a9;p=emacs.git (allocate_string) [GC_CHECK_STRING_BYTES]: Call check_string_bytes only if not noninteractive, increase count to 50. --- diff --git a/src/ChangeLog b/src/ChangeLog index 9337d6b8e01..e7e83eef0f6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,20 @@ +2000-10-18 Gerd Moellmann + + * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color) + (x_to_xcolors, png_load): Use x_query_color. + + * xterm.c (x_color_cells, x_query_colors, x_query_color): New + functions. + (x_alloc_nearest_color): Use it to reduce calls to XQueryColors + which can be slow. + (x_copy_color, x_alloc_lighter_color): Likewise. + + * xterm.h (struct x_display_info): Add color_cells and ncolor_cells. + (x_query_color, x_query_colors): Add prototype. + + * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call + check_string_bytes only if not noninteractive, increase count to 50. + 2000-10-18 Miles Bader * insdel.c (adjust_markers_for_delete): Handle before-insertion diff --git a/src/alloc.c b/src/alloc.c index a50eaa0a560..510d4671183 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -1138,7 +1138,7 @@ allocate_string () consing_since_gc += sizeof *s; #ifdef GC_CHECK_STRING_BYTES - if (++check_string_bytes_count == 10) + if (!noninteractive && ++check_string_bytes_count == 50) { check_string_bytes_count = 0; check_string_bytes ();