How We Built Network Analytics V2

I co-authored this post on the Cloudflare Blog: How we built Network Analytics v2 Archived copies: WaybackMachine Archive.is Perma.cc

May 2, 2023 · 1 min

Should I Compress My Initramfs?

TL;DR As a small start-up time optimization, you can pick the best suited compression algorithm for the initial ramdisk. The Initial Ramdisk When a Linux system boots, it needs to mount the root filesystem /. This may be relatively complicated, as it may be on a software RAID, on LVM, encrypted… To keep things manageable, an initial ramdisk can be used to get a small environment that has all the required modules and configuration to load the root filesystem....

August 31, 2022 · 5 min

From UltiSnips to LuaSnip

TL;DR LuaSnip is fast and doesn’t have to be complicated. Give it a try! Even if that article shows how LuaSnip shines, I have great respect for the work that has gone into UltiSnips. It is still a reliable, reasonably fast plugin given the constraint it operates in (in particular, Vim compatibility requires a fair amount of Vimscript). I’ve written this article shortly after trying LuaSnip and I’m still very much evaluating it....

May 15, 2022 · 7 min

Git ls-files is Faster Than Fd and Find

The git ls-files command is up to 5 times faster than fd or find. But why?

November 4, 2021 · 10 min

GoHugo Asciinema

 cljoly/gohugo-asciinema Want to insert a short demo of your tool or of a command execution on your website? You could insert a video, but then visitors can’t copy text, and it’ll make your page quite heavy. The Asciinema player solves all of that, by replaying a terminal session stored in a text file. This Hugo module makes it very easy to use the Asciinema Player on your Hugo-powered static website....

SQLite Pragma Cheatsheet for Performance and Consistency

TL;DR When Opening the DB PRAGMA journal_mode = wal; -- different implementation of the atomicity properties PRAGMA synchronous = normal; -- synchronise less often to the filesystem PRAGMA foreign_keys = on; -- check foreign key reference, slightly worst performance And check user_version to apply any migrations, for instance with this Rust library. When Closing the DB PRAGMA analysis_limit=400; -- make sure pragma optimize does not take too long PRAGMA optimize; -- gather statistics to improve query optimization Introduction SQL pragma are statements (like SELECT … or CREATE TABLE …) that change the database behaviors or call a special functions....

May 7, 2021 · 6 min