Skip to content

[Improvement] Reduce the write time #1177

@jerqi

Description

@jerqi

Code of Conduct

Search before asking

  • I have searched in the issues and found no similar issues.

What would you like to be improved?

We use the SEND_CHECK_INTERVAL to check the blocks whether finished. Although we send small data, we will still use 500ms to wait.

How should we improve?

We add the event FinishBlockEvent. We post the event to a blocking queue. When we finish sending data, we will create a new event and add the event to the queue. We will poll the FinishBlockEvent from the queue instead of waiting for 500ms.
like

queue = new BlockingQueue();
Event event = queue.poll(500, TimeUnit.MS);

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions