Closed shakatoday closed 1 year ago
Currently CLOG uses the same lock for generating all script ids. (if I understand it correctly) It will affect the performance for multi-user applications.
How about one lock per connection id? Or, maybe there's a better way.
(proclaim '(type fixnum *new-id*)) (defglobal *new-id* 0) (atomic-incf *new-id*)
That is ideal way on sbcl, there should be something similar for ecl
https://shinmera.github.io/atomics/
Implemented.
Thank you for your professional solution!
Currently CLOG uses the same lock for generating all script ids. (if I understand it correctly) It will affect the performance for multi-user applications.
How about one lock per connection id? Or, maybe there's a better way.