Skip to content

Use Queue API instead of inefficient operations#102

Open
okumin wants to merge 2 commits into
debasishg:masterfrom
okumin:replace-queue-operation
Open

Use Queue API instead of inefficient operations#102
okumin wants to merge 2 commits into
debasishg:masterfrom
okumin:replace-queue-operation

Conversation

@okumin

@okumin okumin commented Sep 16, 2014

Copy link
Copy Markdown
Contributor

In Scala 2.10.x, Queue#:+ has a performance issue.
scala/scala@f0f0a5e

So this commit replaces that operations with Queue#enqueue.
And use Queue#dequeue explicitly instead of Queue#head and Queue#tail. There is little dirrerence between these operations, but it will be obvious that Queue is used correctly.

In Scala 2.10.x, Queue#:+ has a performance issue.
scala/scala@f0f0a5e

So this commit replaces that operations with Queue#enqueue.
And use Queue#dequeue explicitly instead of Queue#head and Queue#tail. There is little dirrerence between these operations, but it will be obvious that Queue is used correctly.
@okumin

okumin commented Sep 23, 2014

Copy link
Copy Markdown
Contributor Author

When I tried to request too many commands, Queue#:+ in ResponseHandling spent much time.

@debasishg

Copy link
Copy Markdown
Owner

Thanks .. I will take a look and merge ASAP.

@okumin

okumin commented Sep 24, 2014

Copy link
Copy Markdown
Contributor Author

I found another bottleneck……, so I'm going to fix that.

@okumin

okumin commented Sep 24, 2014

Copy link
Copy Markdown
Contributor Author

It is difficult to fix, so created the issue.
#104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants