Florian Engelhardt

1.5K posts

Florian Engelhardt banner
Florian Engelhardt

Florian Engelhardt

@realFlowControl

Proud dad of 👧🧒🧒🧒👧, Coder, Author, Speaker, Geek. Vim, PHP 🐘, Rust 🦀, OpenSource! PHP Profiling @datadoghq @[email protected]

Germany Joined Ağustos 2017
285 Following615 Followers
Florian Engelhardt
Florian Engelhardt@realFlowControl·
@alexdaubois It's a hack, it fills the array, but it also allocates all elements in the packed array or hash map in one go, so no reallocations needed 🎉
English
1
0
0
37
Alexandre Daubois
Alexandre Daubois@alexdaubois·
@realFlowControl I wasn't aware that preallocating arrays in PHP was a thing, but it makes sense. array_fill() may be more useful than I actually thought! Thanks for sharing this 🙏
English
1
0
2
43
Alexandre Daubois
Alexandre Daubois@alexdaubois·
SplFixedArray uses ~60% less RAM than a regular array in #PHP. That's because regular ones are always (re)allocated with a power-of-2 capacity. 1025 elements? 2048 allocated! Fixed size. Integer keys only. No hash table overhead. Since 5.3. I almost never see it used, do you?
Alexandre Daubois tweet media
English
12
12
128
10.1K
Florian Engelhardt
Florian Engelhardt@realFlowControl·
@alexdaubois Try running with `$size = 2_097_152` and memory overhead for the array is just ~6% (due to the ^2 realloc). If you want to avoid the reallocations, use `array_fill(0, $size, 0);` to "pre-allocate" a packed array, which makes it faster then SplFixedArray
English
2
0
7
60
Alexandre Daubois
Alexandre Daubois@alexdaubois·
2 long forgotten functions of #PHP: compact() turns variable names into an associative array. extract() does the reverse. Named in PHP 4. Still works. Most devs forgot they exist. Where do you see this being used?
Alexandre Daubois tweet media
English
15
2
45
4.6K
Tideways Profiler
Tideways Profiler@tideways·
Ten years of Tideways! Thank you for being part of the journey. Tideways was born from a desire to improve. Benjamin saw PHP apps fail under load, not knowing why. This sparked the idea for a tool focused on profiling, monitoring, and exception tracking. tideways.com/profiler/blog/…
Tideways Profiler tweet media
English
1
0
2
56
Christian Lück
Christian Lück@another_clue·
Using PHPT test files for integration tests in #PHP 👍/👎?
Christian Lück tweet media
English
1
1
5
961
Florian Engelhardt
Florian Engelhardt@realFlowControl·
Your favourite PHP multithreading extension just got tougher. `ext-parallel` v1.2.9 fixes crashes caused by doing things you technically shouldn’t do 😉 Better stability, fewer segfaults. github.com/krakjoe/parall…
English
0
0
3
113
ことみん@FE・PHPカンファレンス北海道
PHPカンファレンス香川に行けなくなりました…… インフルAとコロナを両方発症しました🤒 先に夫がインフルになり、私は余裕こいてピンピンしてたのに今日めっちゃ熱出まして……🛌 香川は結婚記念日の旅行も兼ねてたけど、3連休全部自宅待機です……🏠 #phpconkagawa
日本語
31
0
118
10K
Diana 🦪
Diana 🦪@dianasoyster·
@realFlowControl @LonghornPHP Unfortunately I can’t make this one but will you still be around for the other days? I’d love to chat with you about it after ☺️
English
1
0
1
79
Florian Engelhardt
Florian Engelhardt@realFlowControl·
Thrilled to bring my workshop Observing PHP for Fun and Profit to @LonghornPHP this year! 🚀 We’ll peek under the hood of the PHP engine and even build our own extension in Rust. Come hack on internals with me 👉 longhornphp.com
Longhorn PHP@LonghornPHP

We are excited to have @realFlowControl presenting a tutorial in addition to his keynote. We'll learn all about Observing PHP for Fun and Profit! Deep dive into the PHP engine internals and build a PHP extension to measure performance! Join us at longhornphp.com

English
1
0
3
303
Florian Engelhardt retweeted
Longhorn PHP
Longhorn PHP@LonghornPHP·
Want to attend Longhorn PHP in person, but can't afford a ticket? Thanks to the PHP community, we have a few free tickets to give away to those who need it. We're just asking for a $20 refundable deposit. Register here: ti.to/longhorn-php/l…
English
0
2
2
145
Florian Engelhardt retweeted
Longhorn PHP
Longhorn PHP@LonghornPHP·
We are excited to have @realFlowControl presenting a tutorial in addition to his keynote. We'll learn all about Observing PHP for Fun and Profit! Deep dive into the PHP engine internals and build a PHP extension to measure performance! Join us at longhornphp.com
Longhorn PHP tweet media
English
0
1
2
432
Florian Engelhardt retweeted
CakePHP
CakePHP@cakephp·
Florian ft. the purple elephpant are up! #CakeFest
English
0
1
8
438
Florian Engelhardt retweeted
CakePHP
CakePHP@cakephp·
Looking forward to seeing everyone for #CakeFest next week! Don’t forget we will be streaming live on youtube.com/CakePHP 🍰 October 9-10 at 9:00 GMT+2 Thanks again to @passbolt - our DIAMOND sponsor! CakeFest.org
CakePHP tweet media
English
0
2
4
335