flier / gohs

GoLang Binding of HyperScan https://www.hyperscan.io/
Other
280 stars 51 forks source link

reducing lock conflicts with handleMap #64

Open flier opened 4 days ago

flier commented 4 days ago

solve #62

hi @martinmr,

I think you can try this PR, the default handle.mapSize is runtime.NumCPU() * 2, you can change it use build option --ldflags="-X 'github.com/flier/gohs/internal/handle.mapSize=64'"