Replace AtomicUsize with Cell<usize> in the recursion counter#1098
Replace AtomicUsize with Cell<usize> in the recursion counter#1098alamb merged 1 commit intoapache:mainfrom
AtomicUsize with Cell<usize> in the recursion counter#1098Conversation
alamb
left a comment
There was a problem hiding this comment.
Thank you for the contribution @wzzzzd -- I am not familiar with the relative performance characteristics of Cell vs AtomicUsize -- I wonder did you see the atomic increments show up in a performance trace?
I think there are likely far more heavy weight operations (like string copying) that dominate most sql parsing operations
Pull Request Test Coverage Report for Build 7555548027
💛 - Coveralls |
I wrote a microbenchmark to compare the performance of |
|
+1 for this change, I was going to open a PR myself until I found this one. Using an atomic here is weird and unnecessary, since |
This is a simple PR that eliminates the weird
AtomicUsize.Closes #1097