apache / apache/brpc

brpc 在开启usercode_in_pthread性能比不开启性能好很多,想知道原因

Open
#1,055 0 comments 0 reactions 0 assignees View on GitHub
discussion
Dominant language
C++
Stars
17.6k
Forks
4.1k
Avg merge
2d 12h
Merged PRs (30d)
69

Description

怎么才能不开启--usercode_in_pthread,性能跟usercode_in_pthread一样,程序内部只有btread-tls,没有其他的

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the performance comparison with --usercode_in_pthread enabled and disabled in a program using only pthread TLS. Trace the relevant brpc threading and user-code execution paths to identify the cause of the difference; done means documenting the cause and a concrete way to achieve comparable performance without the flag.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend-api-design, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.