#prog #rust #rustlib
brie-tree - SIMD-optimized B+ Tree implementation that uses integer keys
brie-tree - SIMD-optimized B+ Tree implementation that uses integer keys
A fast B+ Tree implementation that uses integer keys.
The API is similar to the standard library's BTreeMap with some significant differences:
* Lookups and insertions are 2-4x faster than BTreeMap.
* BTree can optionally be used as a multi-map and hold duplicate keys.
* Keys must be integer types or convertible to integers via the BTreeKey trait.
* The maximum integer value is reserved for internal use and cannot be used by keys.
* Elements in the tree are ordered by the integer value of the key instead of the Ord implementation of the keys.
* Cursors can be used to seek back-and-forth in the tree while inserting or removing elements.
* Iterators only support forward iteration.
👍10
🤡29😁10❤6🥴3
Forwarded from лингвист реалист
This media is not supported in your browser
VIEW IN TELEGRAM
Это что такое падает белое сверху??😨😨 Это опасно? Это конец света?
🤡6🫡5💩4😱2❤🔥1❤1🥰1😁1🤯1🤩1🖕1
Forwarded from ИА Панорама
Верховный суд признал экстремистским международное движение телефонных мошенников
Текст: Борис Гонтермахер
Текст: Борис Гонтермахер
ИА Панорама
Верховный суд признал экстремистским международное движение телефонных мошенников
К концу года Верховный суд сделал подарок россиянам и внёс в реестр экстремистских международное движение «Телефонные мошенники» по иску министерства юстиции. Т...
😁17👍1👎1
#prog #article
There is no memory safety without thread safety
There is no memory safety without thread safety
Memory safety is all the rage these days. But what does the term even mean? <...> Typically, people use this term to refer to languages that make sure that there are no use-after-free or out-of-bounds memory accesses in the program. This is then often seen as distinct from other notions of safety such as thread safety, which refers to programs that do not have certain kinds of concurrency bugs. However, in this post I will argue that this distinction isn’t all that useful, and that the actual property we want our programs to have is absence of Undefined Behavior.
👍4🤔3