3 ms·
Yup https://zapier.com/engineering/celery-python-jemalloc/ https://zapier.com/engineering/celery-python-jemalloc/ CPython is less affected than CRuby because C
by jashmatthews 6y ago
Yup https://zapier.com/engineering/celery-python-jemalloc/ https://zapier.com/engineering/celery-python-jemalloc/
CPython is less affected than CRuby because CPython has a specialized allocator called obmalloc for small objects up to 512 bytes.
CRuby < 2.6 doesn't have an allocator like this and hits malloc for anything bigger than 24 bytes. 2.6+ can allocate using the "transient heap" which helps but isn't as effective as CPython's obmalloc.