saksham
8.7K posts

saksham がリツイート

Just finished building tesseract, a cache-aware, domain-specific memory allocator designed for high-throughput, repeated allocation workloads (think request-style systems, tight loops, simulation-style patterns).
General purpose allocators like malloc are designed to handle all kinds of workloads.
It is designed for a specific one:
~repeated allocations
~predictable sizes
~high-throughput systems
It uses:
size classes + freelists
pre allocated arenas,
thread-local behavior (to reduce contention),
Micro-benchmark (1M random size allocations):
tesseract faster than tcmalloc (1.52x faster),
jemalloc (3.57x faster), and malloc (3.68x faster). 14.19ms vs 52.21ms.
Real workload (Web server, 10M http requests):
Single-threaded: tesseract 247ms, malloc 962ms. 3.89x faster.
Multi-threaded (8 threads): tesseract 44.85ms, malloc 184.86ms. 4.12x faster.
also its optimized for small and repeated allocations, not ideal for large or highly irregular workloads
not numa aware , huge page experiments didn’t show improvement for this workload.
[repo link in replies]

English

@Zyara_1ot career update in this economy , gf bf se zyada mushkil to vo hai 💔
English
saksham がリツイート

i miss whatever i was doing back then
Jerkeyray@jerkeyray
Dev Log : June 17, 2025 - continued linear algebra - reading learning go
English
saksham がリツイート

Trained a single layer neural network in C to predict AND GATE from scratch
using gradient descent and Batch training of dataset in almost 300K epochs
github.com/aadityansha06/…
English

>socketio internals
>custom events with data, strings, num, obj, array
>ackn with callbacks for req-res pattern
>broadcasting to all, others & specific clients by socket id
>room management, join, leave, msg to room, get room info
>user registration & online presence tracking


Adhyayanā@adhyayana108
evening folks:) onto socket io now🫡
English








