# Directly embed small strings in zvals

- Thread: https://externals.io/message/96630
- Original archive: https://news-web.php.net/php.internals/96630
- Started by Benjamin Coutu on 2016-10-27T19:40:00+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #96630 — Benjamin Coutu — 2016-10-27T19:40:00+00:00

URL: https://externals.io/message/96630#96630

Ouch, forgot my powers of two there during a weak moment - what a careless mistake. Sorry about that!

Given the low entropy I highly doubt this to be of much benefit.

========== Original ==========
From: Lauri Kenttä <lauri.kentta@gmail.com>
To: Benjamin Coutu <ben.coutu@zeyos.com>
Date: Thu, 27 Oct 2016 17:12:15 +0200
Subject: Re: [PHP-DEV] Directly embed small strings in zvals

> 
> 
> 
> > […]
> 
> That's wrong. 256 = 2**8, and 64 = 2**6, so you get 8/6*7 = 9 chars.
> Not really better than 7 chars, especially considering that all
> operations on single characters would be slower than usual.
