You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 3, 2019. It is now read-only.
I noticed that Tx.verify waits on a global condition. Have you considered installing some synchronisation primitive on to each Var that's read for a Tx, and when committing a write, signalling all waiters on only those Vars that are written? I imagine the overhead may be a larger for toy examples, but it might be possible to minimize overhead by lazily creating and reusing the primitive when Txs have to wait, and using and reusing slices for the waiters on the Vars (they're quite efficient). There's currently no benchmark that would demonstrate any speed-up for a change like this if it's plausible.
The text was updated successfully, but these errors were encountered:
To be honest, I consider this package to be mostly "for fun" and not intended for serious use. It hasn't been touched in many years at this point. If you're interested in developing it further, I'll happily post a deprecation notice and link to your fork. Regardless, I suppose I should put some sort of disclaimer in the README.
I noticed that
Tx.verify
waits on a global condition. Have you considered installing some synchronisation primitive on to eachVar
that's read for aTx
, and when committing a write, signalling all waiters on only thoseVar
s that are written? I imagine the overhead may be a larger for toy examples, but it might be possible to minimize overhead by lazily creating and reusing the primitive whenTx
s have to wait, and using and reusing slices for the waiters on theVar
s (they're quite efficient). There's currently no benchmark that would demonstrate any speed-up for a change like this if it's plausible.The text was updated successfully, but these errors were encountered: