Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104348 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 946 invoked from network); 11 Feb 2019 20:18:05 -0000 Received: from unknown (HELO mail-pf1-f176.google.com) (209.85.210.176) by pb1.pair.com with SMTP; 11 Feb 2019 20:18:05 -0000 Received: by mail-pf1-f176.google.com with SMTP id u6so5517934pfh.11 for ; Mon, 11 Feb 2019 09:00:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4vOWdBgMzTmFXE8SvJN9qWS1N3qa+3wBWyE8XswYxmc=; b=VbnoLcRU+qBRcdLxXcR+VR3quwM/3j7rnQyW2RrrtdUKWoC2EutPJ/4ZIh5aENP3+Z FiJBP0zWS7KGVM/QZcOzePyO/efmOopWaLEsnTd/n9T0U/8hjTDAw/kIA72Eir8RaLNk aNILiT6MeC3D4J7Vz1nYCtFXtWXtiYsELmVXNuWgnSPkeFYXVFoe0aOkMkrbzsb/hFRL drK6TDkkRz1n1COm/zmv6/ISbh//v8/rg/BtZ90ARdduNWfnokMrcZLCr6HeBAu1yJfC xTsoxZCrOir0Kv8Ok77u2PZHd8v0zRZWo4uDDd7MCZgpMgG6Xt/dfw0AiBe6/mWwfrGj BBoQ== 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=4vOWdBgMzTmFXE8SvJN9qWS1N3qa+3wBWyE8XswYxmc=; b=oIzrq3V8lmPhxfqbrOhnWqXbQulVzmJe22OZGnv6ah2WX9TD6BbvoHTnX3ty0xZZyP kQjRxzpEfnqEdXJVAdhuXCuDN3Gl7e8tKiMIHSwZMajNmEpWu6zEuAtJ2nj0OspbPzT/ dgSgRHB6GjXMar/yOUaJdm3ucXmt3PbRPv4kiTzocwWOIKWGzD23om8tzdWjCIiIAqfr vpJixtVQp/q/SjjwWKMan9anwxIcIl8urh4QMZxs0qcXXVv+1FBCpmpYLM79emRazIzf 0Vb9V84qngFShtkXkOEUb5SmlRuTKjt4WC52TNN63E/2i7vXX6G0ytGccVWjY02jEQ/X M3+Q== X-Gm-Message-State: AHQUAuZ4fQ0DF+yRQlDfuN1CiyflVB4IXlWdXqHFjF3HEy5m7yARxiBp /8doujaq0nARWAOldeOTBqE3iiDfCwOjN5P4BpMuvph5pmhgHQ== X-Google-Smtp-Source: AHgI3IZYoncTGFJyqD4zGZJbqjzIqIZOnjYWhKPRnDwKKmhO6hCZg0uwyQXQRMr0Gm/nhDKrAsAsg9NWraXXsnSQPb0= X-Received: by 2002:a63:e742:: with SMTP id j2mr12036064pgk.172.1549904445052; Mon, 11 Feb 2019 09:00:45 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 11 Feb 2019 17:00:34 +0000 Message-ID: To: Legale Legage Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] reasonability of change the mbfl library From: Danack@basereality.com (Dan Ackroyd) On Sun, 10 Feb 2019 at 12:29, Legale Legage wrote: > > > https://github.com/php/php-src/pull/3715/commits/d868059626290b7ba773b957045e08c3efb1d603#diff-22d593ced03b2cb94450d9f9990865c8R38 > > To do, or not to do: that is the question. > What do you think? Opening separate pull requests for separate changes is good as it allows them to be discussed separately. That change is bundled with the mb_str_split() changes, so it's quite hard to see what is optimisation and what is part of the approved RFC. Although memory is cheap, the change appears to increase the static allocation of memory by 128KB for something that >95% of PHP programmers will never use, which is not a good idea. > show a more than 2 times speed increase. Lies, damn lies and statistics. If it takes the time to parse a megabyte string from 0.000002 to 0.000001, no one cares. If it takes the time to parse a megabyte string from 2 seconds to 1 second, wow that's great! i.e. Saying a two times speed increase without context doesn't give people enough information to evaluate it. But this would be easier to discuss as a separate PR. cheers Dan