4 ms·
With my own MaraDNS, I aggressively optimized the memory usage of blacklist entries by having a single really big malloc() to allocate the memory for the entrie
by strenholme 2mo ago
With my own MaraDNS, I aggressively optimized the memory usage of blacklist entries by having a single really big malloc() to allocate the memory for the entries, then traversing that memory block for potentially blacklisted entries.
When I was using one malloc() per entry, a large blacklist took up 237 megabytes of memory. The same blacklist, once optimized to be loaded with a single malloc() call, only took up 9.5 megabytes of memory.
https://samboy.github.io/blog/entries/MaraDNS.html#BlogEntry-2022-12-28 https://samboy.github.io/blog/entries/MaraDNS.html#BlogEntry...
- badatnames 2mo agoWhy do I always find interesting new Twitter accounts just as the person is leaving :)
- strenholme 2mo agoTwitter has become a cesspool, and there’s a lot of reasons why people are leaving it in droves. My personal issue is the misogynists who have created a hateful completely false narrative that 80% of the women sleep with 20% of the men (including the very demeaning and hurtful notion that all women are sexually promiscuous, but only if you’re one of the 20% of supposedly “Alpha” men) [1] Twitter is also full of—let’s call a spade a spade—racists who constantly post some video from years before showing some random Black person doing a criminal act, and then a bunch of racists comment that that’s how all Black people are and it’s the “evil left wing media” suppressing this supposed “truth”. Just as Twitter has become a right-wing cesspool, Reddit has become a leftist cesspool, so I also avoid Reddit, which, like Twitter, is also becoming a closed walled garden—they just this month started clamping down on people reading old.reddit.com anonymously, so now you have to log in to have a usable interface with Reddit. Excuse me, no. [1] This annoyed me to the point I researched the claims to verify it’s a bunch of bullshit. https://samboy.github.io/blog/80-20-myth.html https://samboy.github.io/blog/80-20-myth.html
- ignoramous 2mo agoMight be of interest: - TigerBeetle: A database without dynamic memory allocation, https://news.ycombinator.com/item?id=33192288 https://news.ycombinator.com/item?id=33192288 (2022). - Succinct Data Structures: Cramming 80,000 words into a Javascript file, https://news.ycombinator.com/item?id=2348619 https://news.ycombinator.com/item?id=2348619 (2011).