[php-src] PR #23128: Optimize str_repeat

From: Date: Sat, 08 Aug 2026 06:38:54 +0000
Subject: [php-src] PR #23128: Optimize str_repeat
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-37636@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/23128 Author: divinity76 The memmove got me thinking "can src and dst actually overlap?", and it turns out no: - e always points to populated data + 1 - l may reach the end of populated data, but will never exceed it memcpy is safe here, and faster (unless the compiler already spotted it in an optimization pass and replaced it internally, entirely possible)

« previous php.git-pulls (#37636) next »