101010.pl is one of the many independent Mastodon servers you can use to participate in the fediverse.
101010.pl czyli najstarszy polski serwer Mastodon. Posiadamy wpisy do 2048 znaków.

Server stats:

513
active users

#php_src

0 posts0 participants0 posts today
Lukas Rotermund<p>I'm obsessed. 50% memory savings with PHP arrays have driven me crazy 🤪</p><p>For the past few weeks, my after-work research on PHP arrays has dominated my free time. The 'Never* use arrays' talk by <span class="h-card" translate="no"><a href="https://phpc.social/@Crell" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>Crell</span></a></span> at PHPKonf 2021 and a misinterpreted statement that you can save ~50% memory with PHP arrays have triggered intensive research on the topic.</p><p>[1/2]</p><p><a href="https://social.tchncs.de/tags/php" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>php</span></a> <a href="https://social.tchncs.de/tags/php_src" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>php_src</span></a> <a href="https://social.tchncs.de/tags/web_development" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>web_development</span></a> <a href="https://social.tchncs.de/tags/development" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>development</span></a> <a href="https://social.tchncs.de/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a> <a href="https://social.tchncs.de/tags/array" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>array</span></a> <a href="https://social.tchncs.de/tags/php_array" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>php_array</span></a></p><p><a href="https://lukasrotermund.de/posts/php-array-object-benchmarking/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">lukasrotermund.de/posts/php-ar</span><span class="invisible">ray-object-benchmarking/</span></a></p>
Lukas Rotermund<p>If I have a fresh array in <a href="https://social.tchncs.de/tags/PHP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHP</span></a> and start adding auto-indexed already initialised values, are these then moved into the memory area of zend_array's `arPacked`, are new zvals added here which then reference the other ones, or does the "array" then become a hash map? I'm just trying to understand PHP's array implementation in detail :)</p><p>In addition, if anyone has a link to Github / a documentation where you can see what is happening, I would be super happy :D</p><p><a href="https://social.tchncs.de/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a> <a href="https://social.tchncs.de/tags/PHP_SRC" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHP_SRC</span></a> <a href="https://social.tchncs.de/tags/PHP_CORE" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHP_CORE</span></a> <a href="https://social.tchncs.de/tags/Zend" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Zend</span></a></p>