gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-2415-ga405df


From: Andrew J. Schorr
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-2415-ga405df4
Date: Thu, 26 Jan 2017 16:30:52 +0000 (UTC)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, master has been updated
       via  a405df4fd26c1a1428fb3eb9d749c42295256634 (commit)
      from  6b12d4f726b9578d5c878fa765d5c167c9d71618 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=a405df4fd26c1a1428fb3eb9d749c42295256634

commit a405df4fd26c1a1428fb3eb9d749c42295256634
Author: Andrew J. Schorr <address@hidden>
Date:   Thu Jan 26 11:30:20 2017 -0500

    Minor tweak to block allocator to remove pointless BLOCK_INVALID header.

diff --git a/ChangeLog b/ChangeLog
index eb60152..62b956a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-01-26         Andrew J. Schorr     <address@hidden>
+
+       * awk.h (enum block_id): Remove BLOCK_INVALID, since it serves no
+       useful purpose and seems to slow things down a bit.
+       * node.c (nextfree): Remove first invalid entry.
+
 2017-01-25         Andrew J. Schorr     <address@hidden>
 
        * awk.h (BLOCK): Remove typedef. BLOCK was used for 2 different
diff --git a/awk.h b/awk.h
index 6616351..199aba3 100644
--- a/awk.h
+++ b/awk.h
@@ -1060,8 +1060,7 @@ struct block_header {
 };
 
 enum block_id {
-       BLOCK_INVALID = 0,      /* not legal */
-       BLOCK_NODE,
+       BLOCK_NODE = 0,
        BLOCK_BUCKET,
        BLOCK_MAX       /* count */
 };
diff --git a/node.c b/node.c
index f1f8017..d7ed98e 100644
--- a/node.c
+++ b/node.c
@@ -1002,7 +1002,6 @@ void init_btowc_cache()
 #define BLOCKCHUNK 100
 
 struct block_header nextfree[BLOCK_MAX] = {
-       { NULL, 0},     /* invalid */
        { NULL, sizeof(NODE) },
        { NULL, sizeof(BUCKET) },
 };

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog |    6 ++++++
 awk.h     |    3 +--
 node.c    |    1 -
 3 files changed, 7 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]