[go-nuts] Bitmask is slower than modulo calculation

2024-05-11 Thread leon
I'm trying to prove an optimization technique for ring buffer is effective. One of the technique is using bitmask instead of modulo to calculate a wrap around. However, in my environment, modulo is slightly faster in a test where 1 billion items are enqueued /dequeued by a single goroutine. What

[go-nuts] Re: VCS Stamping - How To Use It? How to debug failures?

2024-05-11 Thread Jason E. Aten
> how can developers debug and find the root cause? If it was me, I would start by going into the container (whatever the podman equivalent of docker exec -it containernumber bash) and try to run 'git status' or 'git log' and see why the git query is giving an error. You could also try strace