singleton
singleton copied to clipboard
[BUG] [Ruby Client] File read does not support thread concurrency
Describe the bug File read for source bundle is currently inside a synchronized block. This means only one thread can access it at a time, affecting performance.
To Reproduce Steps to reproduce the behavior:
- Use the ruby client lib in a sample app.
- Launch multiple(e.g. 1,000) threads that will load a source bundle at the same time. Use a bundle that has a large data set to observe performance.
- Notice that the threads wait for their turn and so affecting performance.
- Do the same for any offline bundle and see the same performance hit.
Expected behavior Multiple threads should be able to read the source bundle at the same time.
@lyiyu66 , @InaSong
Due to current design is changed and the related code is deleted, hence closing it.