diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2016-02-28 11:57:51 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2016-02-28 11:57:51 +0000 |
commit | cf87e55c96d076c0d05e59cde40548a483fdebb9 (patch) | |
tree | 507b81ee8353787977c1c05e7c9a1e846be4a9aa /src | |
parent | 6078e31ea595fcc9b23efa04c437efad8a42c1bf (diff) | |
download | s6-rc-cf87e55c96d076c0d05e59cde40548a483fdebb9.tar.xz |
Better mem locality in s6-rc-update. (lol.)
Diffstat (limited to 'src')
-rw-r--r-- | src/s6-rc/s6-rc-update.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) ; |