From 8757929935c5d64f63f6d7066a2f3ab6478fe7f8 Mon Sep 17 00:00:00 2001 From: Kazuho Oku Date: Fri, 20 Dec 2024 12:37:53 +0900 Subject: [PATCH 1/2] use PTLS_LIKELY to optimize the main path --- include/quicly.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/quicly.h b/include/quicly.h index 724b977f..0e18b90c 100644 --- a/include/quicly.h +++ b/include/quicly.h @@ -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) \ From 9b6380ffdb6b09631fa51ec65a03007a78ed1f16 Mon Sep 17 00:00:00 2001 From: Kazuho Oku Date: Fri, 20 Dec 2024 12:38:18 +0900 Subject: [PATCH 2/2] update picotls --- deps/picotls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/picotls b/deps/picotls index 402544bb..4ab6fda5 160000 --- a/deps/picotls +++ b/deps/picotls @@ -1 +1 @@ -Subproject commit 402544bb65b35c3231a8912f25919de7e7922659 +Subproject commit 4ab6fda556e21ef9ab7a51e48347b0289d5d5888