Ritesh Ghosh

619 posts

Ritesh Ghosh banner
Ritesh Ghosh

Ritesh Ghosh

@riteshgsh

cloud engineer @BluevectorAI • software engineer • low level systems enthusiast

/dev/null Katılım Ekim 2018
155 Takip Edilen66 Takipçiler
Ritesh Ghosh retweetledi
trish
trish@TrisH0x2A·
in 2019 a researcher at Microsoft wrote a paper called "Free List Sharding in Action" and proved that malloc has been slow this whole time he built a drop-in replacement called 'mimalloc' and published the numbers you have been using malloc since you started writing C it works, it is fine, and it is leaving performance on the table glibc malloc was designed to be general purpose across every possible allocation pattern that generality has a cost it uses a single global free list per size class, protected by a lock under any real multithreaded workload every thread is contending on the same lock the fix is simple instead of one big free list per size class, give every 64KiB page its own free list each page also gets two separate lists: one for thread-local frees, one for frees coming from other threads cross-thread frees become a single atomic compare-and-swap with no lock thread-local allocation never touches a lock at all on the larson server benchmark mimalloc is 2.5x faster than tcmalloc and jemalloc under heavy multithreaded workloads on Linux it runs 5.3x faster than glibc malloc with 50% less resident memory it is used in Death Stranding, Unreal Engine, NoGIL CPython 3.13, and Microsoft Bing Redis ships jemalloc by default but mimalloc benchmarks faster than jemalloc across most workloads the fast path in the source is 7 instructions on x64 with a single conditional the comment in the source file says exactly this
trish tweet media
English
5
51
418
22.4K
Ritesh Ghosh retweetledi
sumit 🏴
sumit 🏴@wh0sumit·
can’t stop staring at my wallpaper 🤤
sumit 🏴 tweet media
English
150
310
10.2K
409.1K
trish
trish@TrisH0x2A·
Programming language you learned once but never touched again?
English
664
9
364
64K
Ritesh Ghosh retweetledi
Indie Game Joe
Indie Game Joe@IndieGameJoe·
This indie dev spent 1,400+ days building his game, Tangy TD, completely from scratch in C++. Seeing him and his wife react after the game earned $250,000 in its first week after launch is honestly beautiful.
English
271
1.3K
19.2K
821K
Ritesh Ghosh
Ritesh Ghosh@riteshgsh·
Wanted this for a long time
Matteo Collina@matteocollina

.@nodejs has always been about I/O. Streams, buffers, sockets, files. But there's a gap that has bugged me for years: you can't virtualize the filesystem. You can't import a module that only exists in memory. You can't bundle assets into a Single Executable without patching half the standard library. That changes now 👇

English
0
0
0
72
Ritesh Ghosh retweetledi
ADHD Memes
ADHD Memes@ADHDForReal·
ADHD Memes tweet media
ZXX
85
4K
33.4K
319.5K
Lyra ◌♡◌
Lyra ◌♡◌@Lyraworldxm·
guys if you’re seeing this plzzzz drop ANY random photo from your gallery. i’m bored 😭😭😭
English
4.9K
158
8K
766.5K
Ritesh Ghosh retweetledi
tara
tara@proletarat·
I’ve successfully reduced Phone time by looking at Computer more
English
7
26.7K
233.8K
4.9M
Ritesh Ghosh retweetledi
Pookie
Pookie@PookiePiece·
Official God valley ost
English
65
543
7.8K
200.5K
astro in real time
astro in real time@astroinrealtime·
feelings are rising, libra. don’t run from them.
English
11
46
907
29.7K
Ritesh Ghosh retweetledi
The Cats 𝕏
The Cats 𝕏@TheCatsX·
The Cats 𝕏 tweet media
ZXX
48
5.8K
67.7K
659.3K
Ritesh Ghosh retweetledi
blue
blue@bluewmist·
manifest
blue tweet media
Français
6
35
433
16.3K
Samar 😶‍🌫️
Samar 😶‍🌫️@SamarSingla6·
@riteshgsh Well Done!! I also recommend typeracer, it forces you to correct your mistakes as well 🙂‍↕️ that's how I practiced
English
1
0
1
59
Ritesh Ghosh
Ritesh Ghosh@riteshgsh·
a little progress
Ritesh Ghosh tweet media
English
2
0
3
249
Ritesh Ghosh
Ritesh Ghosh@riteshgsh·
@ankiitamalik @Jitesh_117 Definitely, I'd say go with a mechanical one, the feedback it gives is so encouraging. You can go for Redragon Kumara K552, which isn't that expensive and is a good starting point for mechanical keyboards. amzn.in/d/hCDKpei
English
1
0
1
60
Ritesh Ghosh
Ritesh Ghosh@riteshgsh·
@ankiitamalik I was in your shoes a couple of years ago. As I practiced I saw my speed increase and that got me hooked up, aiming for more wpm with better accuracy. Wanna reach heights like @Jitesh_117.
English
1
0
2
101