Skip to content

Instantly share code, notes, and snippets.

git describe --exact-match 2> /dev/null || git describe --all --long | perl -pe 's/^heads\///'
import Foundation
import LRUCache
@globalActor
fileprivate actor LRUFileCacheActor {
static var shared = LRUFileCacheActor()
}
#if DEBUG
fileprivate let debugBuildID = UUID()
@aehlke
aehlke / index.html
Last active July 7, 2025 18:58 — forked from nolanlawson/index.html
Test async getBoundingClientRect with IntersectionObserver vs rAF + gBCR
<!doctype html>
<html lang="en">
<head>
<title>IntersectionObserver vs getBoundingClientRect (50,000 elements)</title>
<style>
#theContainer { width: 100vw; max-width: 100%; }
.test-elem { margin:1px; display:inline-block; width:10px; height:10px; background:#ddd; }
</style>
</head>
<body>
@aehlke
aehlke / swiftsoup-ab-bench-README.md
Last active January 26, 2026 03:30
SwiftSoup A/B advanced benchmark script (Manabi-like workload)

SwiftSoup A/B Benchmark

Repro script for comparing two commits with a heavier synthetic workload.

Usage:

bash swiftsoup-ab-bench.sh

Defaults (override with env vars):