You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably, there should be a compromise strategy (should be verified by performance tests):
if data size is less than 4Kb, then call blocking function directly,
if data size from 4Kb to 64Kb, then use block_in_place,
if data size >= 64Kb, then use spawn_blocking
Function uses
tokio::task::spawn_blocking
which reduce overall performance by ~20%https://github.com/qoollo/pearl/blob/master/src/blob/file.rs#L207
The text was updated successfully, but these errors were encountered: