asyncer-io / r2dbc-mysql

Reactive Relational Database Connectivity for MySQL. The official successor to mirromutth/r2dbc-mysql(dev.miku:r2dbc-mysql).
https://r2dbc.io
Apache License 2.0
200 stars 21 forks source link

Remove Synchronized Statements(Loom-friendly) #173

Closed jchrys closed 9 months ago

jchrys commented 9 months ago

Motivation: Synchronized statements tend to pin virtual threads to carrier threads.

Modification: Replaced synchronized statements with ReentrantLock

Result: Loom-friendly

mirromutth commented 9 months ago

After this PR is merged, we can consider removing RequestQueue.requireDisposed and RequestQueue.disposed. This is probably over-designed.