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

Set encoding #111

Closed
wants to merge 3 commits into from
Closed

Set encoding #111

wants to merge 3 commits into from

Conversation

adamvr
Copy link
Member

@adamvr adamvr commented Jun 13, 2013

Fast and loose fix for #109

@@ -94,7 +96,8 @@ Connection.prototype.parse = function() {
}

// Finally we can parse the payload
result = parse[this.packet.cmd](
result = parse[this.packet.cmd].call(
this,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should check this for performance. If it isn't any good we could move it to Connection's prototype or pass in encoding (and possibly others) as arguments

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do not pass the Connection as a third argument instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or that. Are there actually any performance issues with using call?

@mcollina mcollina mentioned this pull request Jul 20, 2013
5 tasks
@mcollina mcollina mentioned this pull request Aug 8, 2013
@mcollina
Copy link
Member

Closing, as already merged in #118.

@mcollina mcollina closed this Aug 19, 2013
@YoDaMa YoDaMa deleted the set-encoding branch January 6, 2022 18:11
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