PHP-FPM Just In Time compiler benchmarks ON / OFF
!Friendica Admins Hello there,
(New publication attempt from another instance, sorry if you see double posts)
Is it an overlooked optimization setting because of its recent appearance in php-8 branch ? or is there a reason to have the global JIT compiler disable by default ?
I looked into closed github issues, without real clues 🤔
Anyway, adding a couple of lines enable the Just In Time compiler for better performance. Just saying 😉
diff -u /usr/local/etc/php/conf.d/opcache-recommended.ini.old /usr/local/etc/php/conf.d/opcache-recommended.ini
--- /usr/local/etc/php/conf.d/opcache-recommended.ini.old 2025-02-04 19:55:44.000000000 +0000
+++ /usr/local/etc/php/conf.d/opcache-recommended.ini 2025-02-06 06:49:21.263016902 +0000
@@ -4,3 +4,5 @@
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidte_freq=1
+opcache.jit_buffer_size=128M
+opcache.jit=tracing
Hello BlueSky from Friendica
Vel (Friendica Edition) likes this.
Not your average baby shark: An aquarium welcomes a pup from an all-female tank
Yoko the swell shark was born in a habitat of all-female sharks who hadn't seen a male in years. The aquarium has two possible explanations — and hopes to get confirmation in the coming months.#news #npr #publicradio #usa
posted by pod_feeder_v2
Jeff Goldblum, in Jurassic Parc, with text at bottom: "Life finds a way."
Georgiana Brummell likes this.
Yes, there should be - hang on, I'll see if I can find it ...
friendica.world/help/BBCode for friendica.world help,
bbcode.org/reference.php for general BBCode help ...
Ok, let's try this:
this
is rendered by (following is in-between "code" markers)[img=https://friendica.world/photo/preview/1024/8243854]Friendica logo, from Wikipedia[/img]
Georgiana Brummell likes this.
- but if I click to edit my comment, the wikipedia link is still there)
Georgiana Brummell likes this.
! [ alt text ] ( url to the picture )
like this
phle and Georgiana Brummell like this.
Will try something else later.
Oh and if I may: how about emojis? Text and image does they get read aloud ?
Georgiana Brummell likes this.
Georgiana Brummell likes this.
- but I'm unsure of whether it only works on mastodon (because I've only seen it on federated mastodon posts, here on Friendica), or if it's possible to "summon" it to here as well.
Georgiana Brummell likes this.
like this
phle and Georgiana Brummell like this.
Georgiana Brummell likes this.
like this
phle and Georgiana Brummell like this.
Nice!
I'll go follow @Altbot too. Even if I won't post a lot of my own images, there might be images in links.
Georgiana Brummell likes this.
@Ⓜ3️⃣3️⃣ 🌌 @Georgiana Brummell I assume that the alt-text is read when the screen reader gets to an image,
and that it says nothing at all if there's no alt-text
(and I have no idea if there's a difference between alt-text and title-text, because both exist in HTML coding
Ok, I looked it up:
Alt-text is for when an image isn't shown - be it someone who's turned off images, someone who isn't able to see images, or images that doesn't load e.g. due to a bad/slow connection.
Title-text is what can be seen when hovering over an image, i.e. not for the visually impaired.
→ alt-text it is, then!
But I think alt-text is also shown "when mouse-hovering", if there's no title-text.
so, on to the tests:
1: BBCode
code:[img=https://friendica.world/photo/preview/1024/8289131]Friendica logo, from Wikipedia[/img]
2: Markdown
code:
When I choose Preview, and hover over the images, both give me the "from Wikipedia"-text. No idea where the title text ends up. 😅🙈 (two emojis, one with a sweatdrop smiling face, another with a monkey-see-no-... )
(sorry for the long rambling wall of text)
Georgiana Brummell likes this.
Ⓜ3️⃣3️⃣ 🌌
in reply to Ⓜ3️⃣3️⃣ 🌌 • • •Hypolite Petovan
in reply to Ⓜ3️⃣3️⃣ 🌌 • • •