Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process calls in current process #4

Merged
merged 1 commit into from
Sep 12, 2015

Conversation

danielberkompas
Copy link
Owner

Since CallProcessor just awaits the result of the Task anyway, the
current implementation is actually slower. This is because Elixir has
to spin up a new process to handle the call, and then receive the
output. It's much simpler to just handle the call in the current
process, and avoid the overhead of starting a pointless new process.

Since `CallProcessor` just `awaits` the result of the `Task` anyway, the
current implementation is actually _slower_. This is because Elixir has
to spin up a new process to handle the call, and then receive the
output. It's much simpler to just handle the call in the current
process, and avoid the overhead of starting a pointless new process.
danielberkompas added a commit that referenced this pull request Sep 12, 2015
@danielberkompas danielberkompas merged commit 71fc03c into master Sep 12, 2015
@danielberkompas danielberkompas deleted the remove-unecessary-process branch September 12, 2015 13:10
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.

1 participant