Skip to content
This repository has been archived by the owner. It is now read-only.

Don't put in ringbuffer data that could be sent directly. #37

wants to merge 1 commit into from


Copy link

@vincentbernat vincentbernat commented Oct 4, 2011

Here is some micro optimization. I have written it in hope to decrease latency but this does not work. However, it increases performances by about 6% on my benchmarks. Maybe this is not worth introducing such optimizations (and I am not sure this is correct, for example SSL_write could trigger a new handshake and in this case, I hope that the next SSL_write will still trigger it).

This is a micro optimization designed to decrease latency.
Copy link

jamwt commented Oct 12, 2011

I'd prefer to keep the code paths simple and minimal, and IMHO this patch isn't worth the gains in complexity.

@jamwt jamwt closed this Oct 12, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants