Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118340 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 97450 invoked from network); 1 Aug 2022 15:46:00 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 1 Aug 2022 15:46:00 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AAB3A1804B5 for ; Mon, 1 Aug 2022 10:45:34 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 1 Aug 2022 10:45:34 -0700 (PDT) Received: by mail-qt1-f175.google.com with SMTP id g3so160046qtu.2 for ; Mon, 01 Aug 2022 10:45:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=2R7gSG3ZUBVmCZFrgvYvOplukiYFssga4xfUQAUZ+yw=; b=REDtHRPBzKlzW16DcWS7+2aRMry48MPou5Q+2plDqnSQ2Tkkbk6yMEAvB0BH7AWojR 2ktHhFheckj41Z739wT4Uo9rwm78YG2cQgF+uZt1xxjQHy+qzKXSsxV7balU0Z/1Xez8 e/IIhVM8wnkJ+PfntcAbS7V3VKXEUmyxRXR/zbtuJns7muzK1oMXGLE4J/lS2LR3HhOP GCwuxKE7dIhpn4JjcLLxTm8YHYLLUlOpLaHRRWFAT8wdzZbIV5Xwkn+qdbIhPFoIPJT0 /U2ZzxFJoxtz31fpm6qT1ehRcrTrqaNwwNFoXen4dGIUtqSejP+fmmkcloJXkoD9xBit 1KEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=2R7gSG3ZUBVmCZFrgvYvOplukiYFssga4xfUQAUZ+yw=; b=qDj8B16Xy3xDFIsdnnPqAVcr+fzPlDDlXto6FpoXaygKmYcELwmkro6Df+SoE0KhWu 0UwyPdZWzhAqkvcn3VREC+Dk+6lmdGlyc64K1kUc7yrF31UW3uw1CMJLiID3rp/RkP9I Im76AM8D7Vu32y3akcNCBGAUTSXY34+JRtQI1xF+I8cygEMW7HPl2UVcqtdPwC2y1BSE 6cawNgFVy9ibK91Y3PFXdDcnLKXlH24p41Rf0qKarr7Qd0TlekDl4UIXdt6DhJ6LZ7p8 Ol5RxSZNMnQgLsP0MWqysR3SEUS5WiduM8PpM6D/v4UYOv08IX19/vAk1RkbRc9xuEkc htmg== X-Gm-Message-State: AJIora+YvkUEUP0dDFZIQ011qOKQ+GyuCoO9tieKZOTk80JD3k1WeSVm i7PwTHS7IwDBhu4ZJEmiTPbtmYWHKRSdpPOpo7tnzE+scz8= X-Google-Smtp-Source: AGRyM1s65JXUmCkltDN/w1KKu+ShPX7b2tICw3HTG/xE0Iyf+7iIS8/f9YDey7egLB5IFlt8+hGHRN/wwnOz3IPaEPo= X-Received: by 2002:ac8:7d4d:0:b0:31e:f6b4:f3de with SMTP id h13-20020ac87d4d000000b0031ef6b4f3demr15016525qtb.639.1659375933299; Mon, 01 Aug 2022 10:45:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 1 Aug 2022 18:45:22 +0100 Message-ID: To: David Rodrigues Cc: PHP Internals Content-Type: multipart/alternative; boundary="0000000000000d9fd405e5319152" Subject: Re: [PHP-DEV] array_merge() vs array unpacking performance From: tekiela246@gmail.com (Kamil Tekiela) --0000000000000d9fd405e5319152 Content-Type: text/plain; charset="UTF-8" Hi David, It would be useful if you could provide your measurements and the way you arrived at such results. A quick test doesn't seem to support your findings: https://3v4l.org/v5m9f#v8.1.8 There are already a number of optimizations in array_merge. It might depend on the actual test data that you used. Maybe a specific path needs to be optimized. Please provide some more details. Regards, Kamil --0000000000000d9fd405e5319152--