Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104773 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 67576 invoked from network); 17 Mar 2019 15:39:33 -0000 Received: from unknown (HELO mail-ot1-f48.google.com) (209.85.210.48) by pb1.pair.com with SMTP; 17 Mar 2019 15:39:33 -0000 Received: by mail-ot1-f48.google.com with SMTP id x8so12153398otg.7 for ; Sun, 17 Mar 2019 05:30:41 -0700 (PDT) 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=HljA+bvRVaU94LvTz+SFPNyVOIBU6rmGkqGH7JWF23U=; b=S+qMTt0di6vnpoMhvBSPwmPYbmQqohZ0c8YPlm2q5WPkSiTFGjCGYbwzsvzFwH/j58 /xWtSrV4veQAJXBQNHvHUwXEeVb4DDE03C58LYUYLPiW9EP7MeLu/U8jL0h/rW8cpGs9 JmrUsrno2QU+EhoJcrBciiRhyClRVi8zxsWe5VTlFYGGpeRuTY+aUoaK8xwuCnml4yKV gZc+WoWK5LM0R3rqiALDrnftt9JDVpv4cKXaSpRzdQF4d1PABObK/BHS3NNLVI51T9LI 4R5Zu6n8JAEuEpBVjeV4PqtbtrFWhroI3GVSjcHzG7eud3AAeSXXyS6jHv6FNxEj08Dn ukCA== 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=HljA+bvRVaU94LvTz+SFPNyVOIBU6rmGkqGH7JWF23U=; b=t7lvqc9UcJYBoKAPvml9qWDrWOnanFSeV3nM0D6c2VzwdCLedkiyNPmGtwYsDjvdoS Q0Arjq//ZBWRLWtWCz9CuTtfmD6BY9JQv4EVmabmnd0NnWIpzqwqwL1s5xg60D2PKeXd JLb21c84SYyszqZE+uthAFQ41wRM4sHDNl7tFAr7qIFuMZl6l9xewSRqXzFIYOU3NUnk EZvZErV87ElWkuMW/SnagEQ4HVxd4WyV0Rz7EwxAPg63/a81IZWjyeG1AmVrzdins1Cv 2ThHCitzQP7rF0evrSIqlv7sqHzVtbhB7a/ZUsB/435XSQ6TaHNYJOeYoYnmDR2f0VLD gt0A== X-Gm-Message-State: APjAAAV9UWLKH13ABFRu7UBEt7AojqBJjMhGbRmBS2oblxqvmPyHyKdB kMQClZg1ACZDsismW0vSWBPyA79uraDTEZOES0gnVQ== X-Google-Smtp-Source: APXvYqwFpNkyZWTmwInwALEr1rV48e2XvkNCpPptxawfNgpO0XQdeaHxbnXjfz46ST+j5enrpmf38VtgBnSE4sfhudg= X-Received: by 2002:a05:6830:104e:: with SMTP id b14mr7211352otp.250.1552825841030; Sun, 17 Mar 2019 05:30:41 -0700 (PDT) MIME-Version: 1.0 Date: Sun, 17 Mar 2019 12:30:28 +0000 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Subject: JIT and data locality? From: robehickman@gmail.com (Robert Hickman) I saw in a previous discussion on the addition of JIT that performance in web applications wasn't improved due to data locality issues. I was just wandering weather it would be possible to/worthwhile to add more facility to control data layout, for those who may wish to do so, while leaving the existing data structures alone. I'm thinking along the lines of what numpy does for python? As far as I'm aware, the FFI which has been accepted does allow this lower level control of memory layout. However it is noted that it has much worse performance than the native php structures. Is this due to runtime type conversions? Do note that my understanding of PHP's internals is limited to the articles I've read on the subject, so this thought is from an outsiders perspective.