Markdown parser and HTTP server integration: shared instance vs per‑request latency trade‑off
The goal is to decide whether a markdown parser should be shared across concurrent HTTP requests or instantiated per request when integrating a markdown renderer with a web server. Sharing a single parser instance can reduce memory overhead but may introduce lock contention if the parser maintains mutable state such as extension registers or internal caches.