From cf87e55c96d076c0d05e59cde40548a483fdebb9 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 28 Feb 2016 11:57:51 +0000 Subject: Better mem locality in s6-rc-update. (lol.) --- src/s6-rc/s6-rc-update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s6-rc/s6-rc-update.c b/src/s6-rc/s6-rc-update.c index d94a572..6d8a1aa 100644 --- a/src/s6-rc/s6-rc-update.c +++ b/src/s6-rc/s6-rc-update.c @@ -224,8 +224,8 @@ static void compute_transitions (char const *convfile, unsigned char *oldstate, unsigned int oldn = olddb->nshort + olddb->nlong ; unsigned int newn = newdb->nshort + newdb->nlong ; unsigned int newm = bitarray_div8(newn) ; - unsigned int oldindex[oldn] ; unsigned int sabase = sa->len ; + unsigned int oldindex[oldn] ; unsigned char conversion_table[oldn * newm] ; byte_zero(conversion_table, oldn * newm) ; stuff_with_oldc(oldstate, fdoldc, olddb, convfile, oldindex, sa) ; -- cgit v1.2.3