All Questions
Tagged with performance php
4,098
questions
-1
votes
0
answers
21
views
Spa application (with iframes) to a modern SPA [closed]
I have a laravel project with php8.1, which as frontend uses simple, blade with Html, bootstrap, javascript other things on the front. This page consists of several modules or pages, which perform ...
1
vote
0
answers
26
views
Command getppid() takes 1 second each execution
I am trying to solve the high CPU issue, when tracing one of lsphp process, I see the command getppid() take more than 1 second each execution. See trace log below:
strace: Process 21945 attached
...
0
votes
1
answer
39
views
How to add a new attribute to thousands of Mongodb documents in yii2 performant?
I have php + yii2 + mongodb running on linux in virtualbox (10 cores, 12 GB RAM). yii2-mongodb is installed. I have a csv file that contains 100.000+ records in 2 columns: custom identifier (not _id), ...
0
votes
0
answers
16
views
jQuery.js inclusion and conflicts with Slider Revolution
ou hava some jquery.js libaray include that come after Slider revolution file js inclustion. 1 set the module general option ->jquery and output filters -> js to body to on . 2 find the double ...
1
vote
0
answers
58
views
Chromium browsers cancel HTTP request after 3 seconds and make another one
Related but not duplicate: Chrome cancels URL_REQUEST after exactly 3 seconds
=> this question has been wrongly marked as Resolved. Here, I try to bring new elements to understand what is going on.
...
0
votes
0
answers
41
views
Remove unused css in wp-rocket not working
I'm using wp-rocket for my WordPress website and I applied the Remove unused css option but it seems not working, and still shows in PageSpeed Insight that I have to remove unused css, what should I ...
1
vote
1
answer
42
views
Optimal Way to Register Customizer Options in a WordPress Theme: One Hook or Multiple Hooks?
I am relatively new to WordPress theme development, and I want to add options to the WordPress Customizer. I am considering two different methods to register Customizer settings and controls, but I'm ...
1
vote
0
answers
94
views
Performance PHP on Windows Server
I'have tried to execute this code in 2 windows server with IIS and PHP 8.2 (x64), but the performance is very different.
Server:
OLD (server 1) - Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz
Base ...
1
vote
2
answers
119
views
Differences between Caching using serviceWorker (PWA) and Laravel Cache::put()
Caching is a fundamental aspect of optimizing web applications for speed and efficiency. so it's critical to decide the best method and strategy in order to use it. as far as I'm concerned both of ...
0
votes
1
answer
77
views
Web page slow loading possibly due to API request
I'd like to quickly explain the situation. Essentially, I've created a Livewire component that allows me to fetch data from a radio API to get songs. These songs change every 3 minutes, and I want to ...
0
votes
0
answers
49
views
SplFixedArray is much slower and much more memory hungry than array, PHP8.3
Using PHP8.3.0, testing SplFixedArray, I have this sample code
<?php
declare(strict_types=1);
$res = [];
$t = microtime(true);
for ($i = 1; $i <= 1_000_000; ++$i) {
if (1) {
$new = ...
2
votes
1
answer
67
views
Efficiently Merging Nested Arrays in PHP While Preserving Unique Key-Value Pairs
I'm working on a PHP project where I need to frequently merge multiple nested arrays. The key point is that I want to preserve unique key-value pairs across the arrays, giving priority to values from ...
1
vote
2
answers
75
views
Efficient bulk data insertion (250k records) in Laravel without exceeding PHP time limit? (Queue, multi-tenancy)
I'm encountering a PHP execution time error while inserting approximately 250k records into a MySQL database using Laravel Eloquent. I'm aiming to achieve this without increasing the overall execution ...
0
votes
0
answers
86
views
cURL_multi_exec Performance Issue?
I need to do 12 requests per second to the API on Twitch. I'm currently doing this with 3 processes, each doing 4 lookups per second but sequencially. I thought I'd give curl_multi a try so only 1 ...
-1
votes
2
answers
145
views
MySQL - Fetching From 100 Tables With Good Performance
The Problem
To set the scene, I work on a PHP Laravel system that has taken a drupal-style approach where every field is its own MySQL table. Every table has optimum indexing making it very quick to ...