Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112638 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 32026 invoked from network); 29 Dec 2020 17:23:45 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Dec 2020 17:23:45 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 722D91804C4 for ; Tue, 29 Dec 2020 08:58:14 -0800 (PST) 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.1 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 autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 ; Tue, 29 Dec 2020 08:58:13 -0800 (PST) Received: by mail-lf1-f42.google.com with SMTP id o19so32209080lfo.1 for ; Tue, 29 Dec 2020 08:58:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=bjruUA4wHQChqw9v2N0OHPtLd2guhdT3xMCRM4TmS/o=; b=jsohKhgNv+KIbzHh7zvhZtk4a4stCfEBI6PMcAPy6N8hdo8IC43Z2fvKoidzVdxE8j k/UA3EEfB9Emo58Vyb6BDS/U89pB4alCUiEV926zE5CWyLGexlMjpToSHoj4FUSlDNO0 kXt9GpmHpT6llCswvZLMmtKohznkW89v5Zf6bACytTP6beHu2KjvUVHioxOX459bZP7T gMdtw1Yg5xR8JXZj7mK2OKmfIgiofkVmsNwX9h5UUB8LLNXNykte3Aijtc7hVpgWqS7G m+epb40Uu14sQCr5E0pgPK9FhRZXmOnxtEGaIl9e5YQjTFNoctb0PmnQ9+oS0Qw04PbZ JUdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bjruUA4wHQChqw9v2N0OHPtLd2guhdT3xMCRM4TmS/o=; b=n1s50cp7aoXWtMmq8vYWcZHvhibYW1iz/CU26XnQOQrEasutiOcFo+xRfYxARbvCLV wfy/mIusS5CAmEjGuhjodOEonj9cDKFZZZMtSXISipJYQBFMpwP9V8s2qbYhvTMZXhFQ Ssfo6ct0bR5euuqPEiKw8KPLzELrbVTJmeRYj3H/PhI6fcvB08mRdeUnG0wP2T32BGb9 f6fTBrBYX4mLJIOK/g235x9ss6BUfLhbe6A4tRJjn5CgeL/wDNSMwUPTdRloYbWsSPWT pVd/89iKiM3xqvg1ZTl4c7k8lBqARI2D5TRpDqX0Fzt31//58ugLu4iTxY+jcg0I8olG uOrA== X-Gm-Message-State: AOAM531j/ot4AuWoeNKV64xWyBJghOp2oZrPZoqd58jSbcigDIbe+MKy C2RJGIhLGMjuxoLa8NWKzU6qd/MW27THwuLdeNxXlEnQGqY= X-Google-Smtp-Source: ABdhPJyNWYGaz0IBZr+U5ksgROm2wFowWsPzL6VChwx39JbmhRHmFVAwz/+PxxDqHLaVWLRIYC5ZjkEWo+tYFCXvtHA= X-Received: by 2002:a05:6512:3593:: with SMTP id m19mr19588395lfr.221.1609261089646; Tue, 29 Dec 2020 08:58:09 -0800 (PST) MIME-Version: 1.0 Date: Tue, 29 Dec 2020 17:57:58 +0100 Message-ID: To: PHP Internals List Content-Type: multipart/alternative; boundary="000000000000996d2f05b79d4b2a" Subject: [RFC] Bundling ext/simdjson into core From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --000000000000996d2f05b79d4b2a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Internals, I think this will be my last proposal for quite some while :) But this time, I'd like to propose bundling the https://github.com/crazyxman/simdjson_php extension with some major modifications. The proposed OO API is included in the description of the PR that I've just created: https://github.com/php/php-src/pull/6551 The main motivation behind this RFC is two-fold: - the underlying simdjson library (https://github.com/simdjson/simdjson) which is used by ext/simdjson provides huge performance gains compared to ext/json (see some benchmark results in the PR) - we can support new use-cases, most notably the so called "on-demand" parsing: https://github.com/simdjson/simdjson/blob/master/doc/ondemand.md (This is not implemented currently) Originally, I planned to include the new API in ext/json, but unfortunately= , simdjson is written is C++, so it would make C++ as a hard dependency, which was not the case so far. That's why I opted for creating ext/simdjson= . Please let me know if you have any feedback. Regards: M=C3=A1t=C3=A9 --000000000000996d2f05b79d4b2a--