This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Thread 3 (Thread 0x7f47303ff700 (LWP 29153)): | |
| #0 0x00007f473ef6cd63 in epoll_wait () from /lib/x86_64-linux-gnu/libc.so.6 | |
| #1 0x00007f474060a5d3 in ?? () | |
| from /usr/lib/x86_64-linux-gnu/libevent-2.0.so.5 | |
| #2 0x00007f47405f5f60 in event_base_loop () | |
| from /usr/lib/x86_64-linux-gnu/libevent-2.0.so.5 | |
| #3 0x000000000634b2fd in folly::EventBase::loopBody(int) () | |
| at /tmp/tmp.hEWUdoldcP/third-party/folly/src/folly/io/async/EventBase.cpp: 347 | |
| #4 0x000000000634af95 in folly::EventBase::loop() () | |
| at /tmp/tmp.hEWUdoldcP/third-party/folly/src/folly/io/async/EventBase.cpp: 299 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.addEventListener("DOMContentLoaded", function() { | |
| var lazyImages = [].slice.call(document.getElementsByClassName("js-lazy-img")); | |
| if ("IntersectionObserver" in window) { | |
| var config = { | |
| // If the image gets within 250px of the browser's viewport, start the download: | |
| rootMargin: '250px 0px', | |
| }; | |
| var lazyImageObserver = new IntersectionObserver(function(entries, observer) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.addEventListener("DOMContentLoaded",function(){var e=[].slice.call(document.getElementsByClassName("js-lazy-img"));if("IntersectionObserver"in window){var t=new IntersectionObserver(function(e,s){e.forEach(function(e){if(e.isIntersecting){var s=e.target;s.src=s.dataset.src,s.dataset.srcset&&(s.srcset=s.dataset.srcset),t.unobserve(s)}})},{rootMargin:"250px 0px"});e.forEach(function(e){t.observe(e)})}else e.forEach(function(e){e.src=e.dataset.src,e.dataset.srcset&&(e.srcset=e.dataset.srcset)})}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -eu | |
| export LC_ALL=C.UTF-8 | |
| CURL_FORMAT="%{time_starttransfer} - %{time_pretransfer}" | |
| declare -a TIMES | |
| for i in {1..15}; do | |
| OUT_CURL=$(curl -w "$CURL_FORMAT" -k --compressed -s -o /dev/null "$@") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| frankenphp { | |
| php_ini max_execution_time 300 | |
| php_ini memory_limit 256M | |
| php_ini upload_max_filesize 128M | |
| php_ini post_max_size 128M | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Benchmark: prepend_to_selector() implementations. | |
| * | |
| * Compares the current trunk implementation (split_selector_list) | |
| * against the optimized version (str_replace fast path + split_selector_list fallback). | |
| * | |
| * Usage: php bench-prepend-to-selector.php | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Tests that wp_normalize_path() static cache stores results. | |
| * | |
| * Uses ReflectionFunction::getStaticVariables() to inspect the cache. | |
| * | |
| * Skipped on PHP 8.1 and 8.2 because OPcache's Dead Code Elimination | |
| * incorrectly treats ZEND_BIND_STATIC as side-effect-free for static | |
| * variables with simple initializers, causing getStaticVariables() to | |
| * return compile-time defaults instead of runtime values. Fixed in | |
| * PHP 8.3 via PR #9301 (arbitrary static variable initializers RFC). |
OlderNewer