Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111746 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 15225 invoked from network); 31 Aug 2020 19:45:21 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 31 Aug 2020 19:45:21 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0E17E18054E for ; Mon, 31 Aug 2020 11:49:50 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 31 Aug 2020 11:49:49 -0700 (PDT) Received: by mail-ej1-f54.google.com with SMTP id d26so9931345ejr.1 for ; Mon, 31 Aug 2020 11:49:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rjStXHpz29jTxWtoKd8BgXXyY3YjJGiOYnVvuYEWvRk=; b=sG6gZMP2J+0+/Voi2dEFtj01baM5knevpOnW+x22iR8bj0+JccqHQLDDXFwi9r+lp8 zyYYTG1scy4F0hNhF6TOPIb5DFfwrDkK2NcUVORrzRIZHoaKAFRl/CsR700oY1DFqhzr 07hVKF0XUaFc4rpJ37IzEakBsyNmFrsp5bkk8CmqboOZVio/Gan3nX4fzWawHNS9XV7T CzgAPDQ2UyDz9mV2h30ekv2w1Puq6qTQpuj51eDDGyNU4EnAx/i48URH2HGHHQS+GEWu 4PIxVS4PkeYKoHSXu9tJycD8jtrDlfYLgabuAet8JxpfrLdFQ/JxVEi/wD/JAt/krIqw KWPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rjStXHpz29jTxWtoKd8BgXXyY3YjJGiOYnVvuYEWvRk=; b=IJcqYB/NrL/vvm8shXl0w0WR6rhceV776nCJcwlVS3/YPTxgGU9wFs1j6krMxzIuLP bee4WClj7d/Eb8EzDTWvQd/533jE2jptnN5CBr+rdnTveuEDOZx1UaAhMa2cBfsaDsP3 N3QKvW/k7GEXMyDiOSg9T0MC2M0BCx029UU+6CmpR9R6R6pOIij+cAzOhPsA3YabDmZa XQ8pr1sCnYYK9+bBKrHlpZNUfT/t1REj6x1ofCwP+no4bAneLibHX4uoIdlX3g4pb5NR QfycGOa0bx7HFOmC5oDiPJwfbhTCxOFFCam4bG7Kc+K83c4N6tRWe4eAGoTfTrvK4KAH 3rMg== X-Gm-Message-State: AOAM531e5w1oWFhARMYoyUmSGk1C9n6I4J2IXjQFCjvbbFmMpNa2qwG2 nM+jgL3GrIYmg1KKxc/UCl84SIyNx5pRYPxbSXqKwS42 X-Google-Smtp-Source: ABdhPJzTbdDTrkmER5d3Sxnp6NRhUIecRC4UHQFiSGrVnkLYfK0XzJcbdB7bsSWKQjEdFAUhlMS7Nz0v66ygn2aVESE= X-Received: by 2002:a17:906:914b:: with SMTP id y11mr2334496ejw.145.1598899786108; Mon, 31 Aug 2020 11:49:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 31 Aug 2020 20:49:34 +0200 Message-ID: To: Markus Fischer Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000c8533605ae30ddff" Subject: Re: [PHP-DEV] Request for couple memory optimized array improvements From: olleharstedt@gmail.com (=?UTF-8?Q?Olle_H=C3=A4rstedt?=) --000000000000c8533605ae30ddff Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable NB: You have SplFixedArray which can cover some use-cases. On Mon, 31 Aug 2020, 20:48 Markus Fischer, wrote: > On 31.08.20 20:13, Riikka Kalliom=C3=A4ki wrote: > > Another similar problem with creating array copies is the detection of > > "indexed" arrays (as opposed to associative arrays). > > I'm looking forward to an answer from someone proficient in this area > because _I think_ the engine _internally_ keeps track of this for > performance optimizations, though I don't think it exposes it. > > - Markus > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --000000000000c8533605ae30ddff--