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

Identical branches in buffer_class #25

Open
sminux opened this issue Aug 12, 2024 · 0 comments
Open

Identical branches in buffer_class #25

sminux opened this issue Aug 12, 2024 · 0 comments

Comments

@sminux
Copy link

sminux commented Aug 12, 2024

Identical branches in

} else if(rb_respond_to(io, s_read)) {
return s_read;
} else {
return s_read;
}

} else if(rb_respond_to(io, s_append)) {
return s_append;
} else {
return s_write;

We can replace 'else if', this improves performance slightly

sminux pushed a commit to sminux/cbor-ruby that referenced this issue Aug 12, 2024
Identical branches
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

No branches or pull requests

1 participant