[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/raeburn-startup 702bcad 15/17: Don't memset storag
From: |
Ken Raeburn |
Subject: |
[Emacs-diffs] scratch/raeburn-startup 702bcad 15/17: Don't memset storage we're about to fill anyway. |
Date: |
Thu, 15 Dec 2016 11:33:19 +0000 (UTC) |
branch: scratch/raeburn-startup
commit 702bcad88f12f9f59ce6358dd444a508ea0eebb7
Author: Ken Raeburn <address@hidden>
Commit: Ken Raeburn <address@hidden>
Don't memset storage we're about to fill anyway.
* src/charset.c (load_charset_map_from_file): Don't bother to memset
the large allocated arrays before filling them.
---
src/charset.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/charset.c b/src/charset.c
index e6226ce..0a710b0 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -500,7 +500,6 @@ load_charset_map_from_file (struct charset *charset,
Lisp_Object mapfile,
large (larger than MAX_ALLOCA). */
head = record_xmalloc (sizeof *head);
entries = head;
- memset (entries, 0, sizeof (struct charset_map_entries));
n_entries = 0;
while (1)
@@ -531,7 +530,6 @@ load_charset_map_from_file (struct charset *charset,
Lisp_Object mapfile,
{
entries->next = record_xmalloc (sizeof *entries->next);
entries = entries->next;
- memset (entries, 0, sizeof (struct charset_map_entries));
n_entries = 0;
}
idx = n_entries;
- [Emacs-diffs] branch scratch/raeburn-startup created (now 6a7d996), Ken Raeburn, 2016/12/15
- [Emacs-diffs] scratch/raeburn-startup 04b9ff6 03/17: Short-circuit substitutions for some simple types., Ken Raeburn, 2016/12/15
- [Emacs-diffs] scratch/raeburn-startup 3b47eb4 02/17: Reduce lread substitutions., Ken Raeburn, 2016/12/15
- [Emacs-diffs] scratch/raeburn-startup 3dd6aa7 13/17: Create *Messages* buffer when loading dumped data., Ken Raeburn, 2016/12/15
- [Emacs-diffs] scratch/raeburn-startup f48e12c 06/17: Reduce nested calls during substitution., Ken Raeburn, 2016/12/15
- [Emacs-diffs] scratch/raeburn-startup 702bcad 15/17: Don't memset storage we're about to fill anyway.,
Ken Raeburn <=
- [Emacs-diffs] scratch/raeburn-startup c95f727 16/17: Dump defvars for special variables only., Ken Raeburn, 2016/12/15
- [Emacs-diffs] scratch/raeburn-startup 8e7ec27 07/17: Use a hash table for seen_list, similar to read_objects_map., Ken Raeburn, 2016/12/15
- [Emacs-diffs] scratch/raeburn-startup dcc4b55 04/17: Replace read_objects assoc list with two hash tables., Ken Raeburn, 2016/12/15
- [Emacs-diffs] scratch/raeburn-startup 8f37b82 08/17: Stefan's patch to write out and load "dumped.elc"; Oct 31 version., Ken Raeburn, 2016/12/15
- [Emacs-diffs] scratch/raeburn-startup 872c9f6 05/17: Don't generate excessive hash tables during reads., Ken Raeburn, 2016/12/15
- [Emacs-diffs] scratch/raeburn-startup 44f3368 11/17: Force purification off when using dumped.elc., Ken Raeburn, 2016/12/15
- [Emacs-diffs] scratch/raeburn-startup 2fa607a 10/17: Increase the obarray size., Ken Raeburn, 2016/12/15
- [Emacs-diffs] scratch/raeburn-startup 6120138 12/17: Don't get into an error loop if dumped.elc isn't found., Ken Raeburn, 2016/12/15
- [Emacs-diffs] scratch/raeburn-startup 913592c 14/17: Optimize reading of ASCII symbols from a .elc file., Ken Raeburn, 2016/12/15
- [Emacs-diffs] scratch/raeburn-startup 5c337b4 01/17: Use getc_unlocked., Ken Raeburn, 2016/12/15