Jia-Jun Yeh
Low Latency C++ for Fun and Profit
Try
HackMD
Jia-Jun Yeh
·
Follow
Last edited by
Jia-Jun Yeh
on
Oct 17, 2023
Linked with GitHub
Contributed by
0
Comments
Feedback
Log in to edit or delete your comments and be notified of replies.
Sign up
Already have an account? Log in
There is no comment
Select some text and then click Comment, or simply add a comment to this page from below to start a discussion.
Discard
Send
Low Latency C++ for Fun and Profit
https://github.com/pacificplusplus/conference/blob/master/slides-2017/Low Latency C%2B%2B for Fun and Profit/slides.pdf
重點
remove branch
template-based configuration
memory alloc (pooling)
exception
almost zero-cost if not throw
avoid multi threading
shared data
synchronization
contention (last level cache lock)
SPSC lockfree queue
cache line friendly
dense_hash_map / flat_hash_map / ska::flat_hash_set
gcc
branch prediction hints
force inline / noinline
attribute hot & cold
GNU中attribute中的cold和hot
prefetching
hotpath pre warm (run through the entire system)
performance counter
cache miss event etc
compare instruction
RDTSC for high resolution timestamp
Low Latency C++ for Fun and Profit
Expand all
Back to top
Go to bottom
Low Latency C++ for Fun and Profit
Expand all
Back to top
Go to bottom
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up
Comment