# \#binaries

**URL:** https://erlangforums.com/tag/binaries/564.md

[Latest](https://erlangforums.com/latest.md) · [Categories](https://erlangforums.com/categories.md) · [Tags](https://erlangforums.com/tags.md)

---

## [Making \`dns\_erlang\` fast: binary tricks for the BEAM](https://erlangforums.com/t/making-dns-erlang-fast-binary-tricks-for-the-beam/6059)

<div class="topic-metadata">

**Author:** [@NelsonVides](https://erlangforums.com/u/NelsonVides)\
**Replies:** 0\
**Last updated:** [October 19, 2026, 1:15pm UTC](https://erlangforums.com/t/making-dns-erlang-fast-binary-tricks-for-the-beam/6059 "2026-10-19T13:15:31Z")

</div>

We’ve spent the last months occasionally rewriting, bit by bit, the hot paths of dns\_erlang, the DNS parser library behind erldns and our authoritative name servers. Our name servers now use 12% less CPU per query and ha…

---

## [Erlang Binaries Cheat Sheet](https://erlangforums.com/t/erlang-binaries-cheat-sheet/2327)

<div class="topic-metadata">

**Author:** [@Fylke](https://erlangforums.com/u/Fylke)\
**Replies:** 6\
**Last updated:** [July 31, 2025, 3:17pm UTC](https://erlangforums.com/t/erlang-binaries-cheat-sheet/2327 "2025-07-31T15:17:51Z")

</div>

I updated my cheat sheet for binaries: https://cheatography.com/fylke/cheat-sheets/erlang-binaries/ Every time I’m working with binaries, it feels like I’ve forgotten all the related syntax. So I made a cheat sheet. Hop…

---

## [Does REFC-biniaries count to process\_info(Pid, memory)?](https://erlangforums.com/t/does-refc-biniaries-count-to-process-info-pid-memory/4785)

<div class="topic-metadata">

**Author:** [@Chef](https://erlangforums.com/u/Chef)\
**Replies:** 2\
**Last updated:** [May 27, 2025, 5:48am UTC](https://erlangforums.com/t/does-refc-biniaries-count-to-process-info-pid-memory/4785 "2025-05-27T05:48:14Z")

</div>

Hi! I am trying to measure memory consumption on a program implemented with either binaries or lists for handling Strings. So i was wondering: When calling process\_info(Pid, memory). Does the memory used for an REFC-b…

---

## [Bitstring not matching as expected](https://erlangforums.com/t/bitstring-not-matching-as-expected/4479)

<div class="topic-metadata">

**Author:** [@Wondersye](https://erlangforums.com/u/Wondersye)\
**Replies:** 4\
**Last updated:** [February 12, 2025, 1:42pm UTC](https://erlangforums.com/t/bitstring-not-matching-as-expected/4479 "2025-02-12T13:42:52Z")

</div>

Hi, This is probably a silly question, but while performing a match on bitstring, I got bit (yes!) by a mistake that seems to me easy to do; I found the hard way that the following pattern was not matching as expected: \<…

---

## [How do I parse a binary into a 32 bit float?](https://erlangforums.com/t/how-do-i-parse-a-binary-into-a-32-bit-float/2216)

<div class="topic-metadata">

**Author:** [@Fylke](https://erlangforums.com/u/Fylke)\
**Replies:** 2\
**Last updated:** [December 30, 2022, 2:14pm UTC](https://erlangforums.com/t/how-do-i-parse-a-binary-into-a-32-bit-float/2216 "2022-12-30T14:14:57Z")

</div>

I’m playing around with binaries, and in the docs it says that floats can be either 64, 32, or 16 bits. I can parse 64 bits just fine, but I can’t figure out how to parse 32: 55\> \<\<A/float\>\> = \<\<1,17,0,42,43,11,24,11\>\>.…
