Skip to content

Commit

Permalink
core.group_freelist: shrink queue
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed Feb 21, 2022
1 parent d01df58 commit 99e2a6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/group_freelist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ local band = bit.band
-- Group freelist holds up to SIZE chunks of chunksize packets each
chunksize = 2048

-- (SIZE=1024)*(chunksize=2048) == roughly two million packets
local SIZE = 1024 -- must be a power of two
-- (SIZE=512)*(chunksize=2048) == roughly one million packets
local SIZE = 512 -- must be a power of two
local MAX = SIZE - 1

local CACHELINE = 64 -- XXX - make dynamic
Expand Down

0 comments on commit 99e2a6c

Please sign in to comment.