HackerTrans
TopNewTrendsCommentsPastAskShowJobs

superdimwit

no profile record

Submissions

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

highload.fun
3 points·by superdimwit·4 ปีที่แล้ว·0 comments

comments

superdimwit
·2 ปีที่แล้ว·discuss
Thanks!
superdimwit
·2 ปีที่แล้ว·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
·3 ปีที่แล้ว·discuss
https://eli.thegreenplace.net/2012/07/12/computed-goto-for-e...

is a good summary
superdimwit
·3 ปีที่แล้ว·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
·3 ปีที่แล้ว·discuss
Try dear-imgui + implot. There are Python bindings
superdimwit
·4 ปีที่แล้ว·discuss
There’s a Hello World on the page
superdimwit
·4 ปีที่แล้ว·discuss
30 years?
superdimwit
·4 ปีที่แล้ว·discuss
Agreed, autovec is in my experience where clang really shines.