diff options
author | Matt Joiner <anacrolix@gmail.com> | 2020-08-28 10:43:34 +1000 |
---|---|---|
committer | Matt Joiner <anacrolix@gmail.com> | 2020-08-28 10:43:34 +1000 |
commit | 597720941a528be2e43789a10781346a6dff7607 (patch) | |
tree | af6bbab0e2d91528d2ef3eb30704fbee557a11d4 /funcs.go | |
parent | Dedicated tx locks type (diff) | |
download | stm-597720941a528be2e43789a10781346a6dff7607.tar.gz stm-597720941a528be2e43789a10781346a6dff7607.tar.xz |
Reduce more allocations
Diffstat (limited to 'funcs.go')
-rw-r--r-- | funcs.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -9,8 +9,9 @@ var ( txPool = sync.Pool{New: func() interface{} { expvars.Add("new txs", 1) tx := &Tx{ - reads: make(map[*Var]uint64), - writes: make(map[*Var]interface{}), + reads: make(map[*Var]uint64), + writes: make(map[*Var]interface{}), + watching: make(map[*Var]struct{}), } tx.cond.L = &tx.mu return tx |