Files
ed 30da767d56
Deploy Quartz site to GitHub Pages / build (push) Canceled after 0s
Deploy Quartz site to GitHub Pages / deploy (push) Canceled after 0s
lots
2026-11-16 09:59:30 -05:00

1.6 KiB

title, type, source, source_url, author, handle, post_id, date, archived, draft, tags, description, in_reply_to
title type source source_url author handle post_id date archived draft tags description in_reply_to
instead of using the decimal system for timing (e.g., 1000 for milliseconds)—which means using division and multiplication instructions—i'm using a base-2 system (e.g., 1024 for "milliseconds") to use cheap math, such as bit shifts. archive twitter https://x.com/VPCOMPRESSB/status/2100820105290481713 /i:'mɪər/ VPCOMPRESSB 2100820105290481713 2026-09-18 2026-11-16 false
archive
twitter
VPCOMPRESSB
instead of using the decimal system for timing (e.g., 1000 for milliseconds)—which means using division and multiplication instructions—i'm using a base-2 system (e.g., 1024 for "milliseconds") to use cheap math, such as bit shifts.

Source

Thread

1/ @VPCOMPRESSB ^2100820105290481713

instead of using the decimal system for timing (e.g., 1000 for milliseconds)—which means using division and multiplication instructions—i'm using a base-2 system (e.g., 1024 for "milliseconds") to use cheap math, such as bit shifts.

2/ @VPCOMPRESSB ^2100820108067152277

if i ever, rarely, need a decimal time, then it's as easy as converting $ to ₽.

3/ @VPCOMPRESSB ^2100820111120543909

i'm not a fan of QueryPerformanceCounter.

i've used SYSTEM_HYPERVISOR_USER_SHARED_DATA to translate RDTSCP into a standard time, but Microsoft's docs regarding RDTSCP is scary.