Zakarum 

I love Rust and create things.

1subscriber

1post

goals1
0 of 65 536 paid subscribers
Когда у меня будет достаточно подписчиков, ничто не будет отвлекать меня от наполнение экосистемы Rust классными штуками

About

Люблю кодить на Rust и создавать разные штуки

Working on new memory allocator.

While bump-allocators may yield extremely fast performance they are unsuitable for
being globally accessible and bound returned memory with lifetime of shared borrow.
It's hard to bump-allocated memory to escape function scope and unsafe to use in API
that doesn't accept values with bound lifetime.
New memory allocator is ring-based and is called ring-alloc.
Instead of provide single reset function to reuse all pre-allocated memory invalidating previous allocations it works with common deallocation method.
It stores memory chunk in ring structure and traverses it exhausting each chunk before moving to next.
After full turn it tries to reuse chunk if all allocations made from it were deallocated. If not - new chunk is allocated and ring is extended.
This happens until longest allocation from ring is held no more than full ring. At which point it ceases allocating new chunks and just keep reusing those in ring.
Have you ever needed to allocate memory for with short lifetime, but without known scope it would fit?
Yes
No
Allocation?
No votes yet, be the first!
Subscription levels4

Спасибо!

$0.14 per month
Забустить мою мотивацию чуток.

Большое спасибо!

$2.7 per month
Ваш вклад мотивирует меня кодить больше :)

It's over nine thousand!

$122 per month
Для ценителей Rust и старых анимех.

Спонсор

$2 022 per month
Ваш весомый вклад поможет мне перейти на фуллтайм опенсорс Rust.
Вы или Ваша компания может быть указана спонсором в README проекта на ваш выбор.
Go up