WeSearch

"How I Cut My Go Markdown Linter's Benchmark by 81%"

·9 min read · 0 reactions · 0 comments · 10 views
#go#performance#opensource#programming
"How I Cut My Go Markdown Linter's Benchmark by 81%"
⚡ TL;DR · AI summary

The article discusses the optimization of gomarklint, a Go-based Markdown linter. The author shares insights on the benchmarking process and the architectural changes that led to an 81% reduction in performance costs. Key improvements included the introduction of a shared utility for code block detection and a reliable benchmarking method.

Key facts
Original article
DEV.to (Top)
Read full at DEV.to (Top) →
Opening excerpt (first ~120 words) tap to expand

try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3422958) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Kazu Posted on May 26 "How I Cut My Go Markdown Linter's Benchmark by 81%" #go #performance #opensource #programming When I started optimizing gomarklint, I had no benchmarks. I had unit tests. I had coverage. But I had no idea what the linter actually cost to run on a real document. Here's what I found, what I changed, and what I'd do differently next time. What is gomarklint? gomarklint is a Go-based CLI Markdown linter I've been building as an open-source project.

Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from DEV.to (Top)