Permalink
Browse files

sh: Bump VTABSIZE to 1000 which improves hash_set/get performance, av…

…oiding collisions
  • Loading branch information...
bdrewery committed Feb 12, 2018
1 parent 707ecbc commit 8dc5bc2fa60ce570e3297751eb39d83e6d7dd971
Showing with 7 additions and 4 deletions.
  1. +1 −1 Makefile.am
  2. +4 −3 Makefile.in
  3. +2 −0 external/sh/var.c
View
@@ -157,7 +157,7 @@ timestamp_SOURCES= src/libexec/poudriere/timestamp/timestamp.c
timestamp_LDADD= -lpthread
tsort_SOURCES= src/libexec/poudriere/tsort/tsort.c
sh_CFLAGS= -DSHELL -std=gnu99 ${sh_hist_CFLAGS} \
sh_CFLAGS= -DSHELL -std=gnu99 -DVTABSIZE=1000 ${sh_hist_CFLAGS} \
-include $(top_srcdir)/external/sh_compat/compat.h \
-I$(top_srcdir)/src \
-I$(top_srcdir)/external/sh
View
@@ -636,9 +636,10 @@ timeout_SOURCES = src/libexec/poudriere/timeout/timeout.c
timestamp_SOURCES = src/libexec/poudriere/timestamp/timestamp.c
timestamp_LDADD = -lpthread
tsort_SOURCES = src/libexec/poudriere/tsort/tsort.c
sh_CFLAGS = -DSHELL -std=gnu99 ${sh_hist_CFLAGS} -include \
$(top_srcdir)/external/sh_compat/compat.h -I$(top_srcdir)/src \
-I$(top_srcdir)/external/sh -I$(top_srcdir)/src/poudriere-sh \
sh_CFLAGS = -DSHELL -std=gnu99 -DVTABSIZE=1000 ${sh_hist_CFLAGS} \
-include $(top_srcdir)/external/sh_compat/compat.h \
-I$(top_srcdir)/src -I$(top_srcdir)/external/sh \
-I$(top_srcdir)/src/poudriere-sh \
-I$(top_builddir)/src/poudriere-sh
sh_LDADD = ${sh_hist_LDADD}
sh_hist_LDADD = @MAINTAINER_MODE_TRUE@ -ledit
View
@@ -71,7 +71,9 @@ __FBSDID("$FreeBSD: head/bin/sh/var.c 326025 2017-11-20 19:49:47Z pfg $");
#endif
#ifndef VTABSIZE
#define VTABSIZE 39
#endif
struct varinit {

0 comments on commit 8dc5bc2

Please sign in to comment.