« * K @glebv.bsky.social

Gleb Volkov @glebv.bsky.social

2026-09-23 19:48 UTC

My 1KB JavaScript ray tracer got a lot of feedback for being painfully slow 😅 One anonymous reviewer pointed at `with(Math)` as a likely culprit, so I benchmarked it. Removing it made the same render 4.26× faster in Chrome and 6.96× faster in Firefox. Cost: +1 packed byte. #codegolf #JavaScript

2 pictures (not shown on this phone)

1 likes, 2 reposts, 1 replies

3 Next post4 More from @glebv.bsky.socialBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup