singleton icon indicating copy to clipboard operation
singleton copied to clipboard

[BUG] [Ruby Client] File read does not support thread concurrency

Open jessiejuachon opened this issue 2 years ago • 1 comments

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:

  1. Use the ruby client lib in a sample app.
  2. 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.
  3. Notice that the threads wait for their turn and so affecting performance.
  4. 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.

jessiejuachon avatar Mar 08 '22 17:03 jessiejuachon

@lyiyu66 , @InaSong

jessiejuachon avatar Mar 14 '22 08:03 jessiejuachon

Due to current design is changed and the related code is deleted, hence closing it.

lyiyu66 avatar Sep 16 '22 08:09 lyiyu66