HackerTrans
TopNewTrendsCommentsPastAskShowJobs

superdimwit

no profile record

Submissions

Show HN: A site for competitive performance programming and micro-optimisation

highload.fun
3 points·by superdimwit·vor 4 Jahren·0 comments

comments

superdimwit
·vor 2 Jahren·discuss
Thanks!
superdimwit
·vor 2 Jahren·discuss
Clang recently got a new calling convention that makes these tail calls much cheaper (avoids the need for the caller to preserve some registers). I can never remember the name - it’s either preserve_all or preserve_none (whose perspective is the preservation from?).
superdimwit
·vor 3 Jahren·discuss
https://eli.thegreenplace.net/2012/07/12/computed-goto-for-e...

is a good summary
superdimwit
·vor 3 Jahren·discuss
On 1: this small amount of overhead matters because the amount of work you do on each opcode can be tiny. The extra jump could be 20% of your runtime! On 2: yes, this helps the indirect branch target predictor. In a real program you’ll often get repeated sequences of opcodes (increment, then compare) that can be predicted. These branch predictors can be pattern based.
superdimwit
·vor 3 Jahren·discuss
Try dear-imgui + implot. There are Python bindings