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

update picotls #597

Merged
merged 2 commits into from
Dec 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
use PTLS_LIKELY to optimize the main path
  • Loading branch information
kazuho committed Dec 20, 2024
commit 8757929935c5d64f63f6d7066a2f3ab6478fe7f8
4 changes: 2 additions & 2 deletions include/quicly.h
Original file line number Diff line number Diff line change
Expand Up @@ -1409,13 +1409,13 @@ extern const quicly_stream_callbacks_t quicly_stream_noop_callbacks;
do { \
PTLS_LOG_DEFINE_POINT(quicly, _name, logpoint); \
uint32_t active = ptls_log_point_maybe_active(&logpoint); \
if (active == 0) \
if (PTLS_LIKELY(active == 0)) \
break; \
quicly_conn_t *_c = (_conn); \
ptls_t *_tls = quicly_get_tls(_c); \
ptls_log_conn_state_t *conn_state = ptls_get_log_state(_tls); \
active &= ptls_log_conn_maybe_active(conn_state, (const char *(*)(void *))ptls_get_server_name, _tls); \
if (active == 0) \
if (PTLS_LIKELY(active == 0)) \
break; \
PTLS_LOG__DO_LOG(quicly, _name, conn_state, (const char *(*)(void *))ptls_get_server_name, _tls, _c->stash.now == 0, { \
if (_c->stash.now != 0) \
Expand Down