MESSAGE
DATE | 2021-02-06 |
FROM | From: "Wesley Peng"
|
SUBJECT | Re: [Hangout - NYLXS] Moving ExecCGI to mod_perl - performance and
|
From hangout-bounces-at-nylxs.com Sun Feb 7 10:44:58 2021 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: from www2.mrbrklyn.com (www2.mrbrklyn.com [96.57.23.82]) by mrbrklyn.com (Postfix) with ESMTP id 003E1164024; Sun, 7 Feb 2021 10:44:57 -0500 (EST) X-Original-To: hangout-at-www2.mrbrklyn.com Delivered-To: hangout-at-www2.mrbrklyn.com Received: by mrbrklyn.com (Postfix, from userid 1000) id A0DE3163FFA; Sun, 7 Feb 2021 10:44:29 -0500 (EST) Resent-From: Ruben Safir Resent-Date: Sun, 7 Feb 2021 10:44:29 -0500 Resent-Message-ID: <20210207154429.GG25439-at-www2.mrbrklyn.com> Resent-To: hangout-at-mrbrklyn.com X-Original-To: ruben-at-mrbrklyn.com Delivered-To: ruben-at-mrbrklyn.com Received: from mxout1-ec2-va.apache.org (mxout1-ec2-va.apache.org [3.227.148.255]) by mrbrklyn.com (Postfix) with ESMTP id 8074F163FCE for ; Sat, 6 Feb 2021 20:04:28 -0500 (EST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-ec2-va.apache.org (ASF Mail Server at mxout1-ec2-va.apache.org) with SMTP id DD29842405 for ; Sun, 7 Feb 2021 01:04:27 +0000 (UTC) Received: (qmail 23326 invoked by uid 500); 7 Feb 2021 01:04:27 -0000 Mailing-List: contact modperl-help-at-perl.apache.org; run by ezmlm Precedence: bulk Delivered-To: mailing list modperl-at-perl.apache.org Received: (qmail 23315 invoked by uid 99); 7 Feb 2021 01:04:26 -0000 Received: from spamproc1-he-fi.apache.org (HELO spamproc1-he-fi.apache.org) (95.217.134.168) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Feb 2021 01:04:26 +0000 Received: from localhost (localhost [127.0.0.1]) by spamproc1-he-fi.apache.org (ASF Mail Server at spamproc1-he-fi.apache.org) with ESMTP id DF9F5C0116 for ; Sun, 7 Feb 2021 01:04:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamproc1-he-fi.apache.org X-Spam-Flag: NO X-Spam-Score: 0.5 X-Spam-Level: X-Spam-Status: No, score=0.5 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.2, JMQ_SPF_NEUTRAL=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamproc1-he-fi.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=pengfamily.de header.b=n30qwwxd; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=ugcNEVXI Received: from mx1-ec2-va.apache.org ([116.203.227.195]) by localhost (spamproc1-he-fi.apache.org [95.217.134.168]) (amavisd-new, port 10024) with ESMTP id TmDK6RBOBukK for ; Sun, 7 Feb 2021 01:04:24 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=64.147.123.18; helo=wnew4-smtp.messagingengine.com; envelope-from=wesley-at-pengfamily.de; receiver= Received: from wnew4-smtp.messagingengine.com (wnew4-smtp.messagingengine.com [64.147.123.18]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id 487FDBCD8D for ; Sun, 7 Feb 2021 01:04:24 +0000 (UTC) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.west.internal (Postfix) with ESMTP id 9BC0FD20 for ; Sat, 6 Feb 2021 20:04:16 -0500 (EST) Received: from imap21 ([10.202.2.71]) by compute2.internal (MEProxy); Sat, 06 Feb 2021 20:04:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pengfamily.de; h=mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm1; bh=y+sjxLeTQs/7b+u/XeXr4ayKfmEUiGb 2TaJaKlZNPLw=; b=n30qwwxd7a4BOHfQJISyTXY+lRT5qS/xToLcFXoeBYqkULc 34dXdr4rvc6hDpGhoAR/9vHOiNsKwlBibTP64tJB+TsPYpYKqGZxhCASIxiyGX2l OiogY99XCgygImQpE8ZdWaSEyXgq0q7H9ethQDqfqV3tThBTNKIqUm/GySB3J1g8 eLXbrlZMs8KGE1CyT6mntvzu6o4IZn1aRujCp7NMJVFtYY+wtr/W12b2lkQO2tmY ZvmhT94U3Z3BEiBCQfILKtnLVhJwaa7Q6QjkmKrXJLsPUeYpSnWMs9rPaixgiHk0 AvFPZb9XDsm18zVTJu8a6h9bmnUK1jYS6FwNEqw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=y+sjxL eTQs/7b+u/XeXr4ayKfmEUiGb2TaJaKlZNPLw=; b=ugcNEVXIbLMzW0Uapv0mOU +mCn8jlaa4qu7U9Me/UUtw0CiENhKjEdAWT+1HKrF4eR7nfM1KyKhi9nnFYOnAsO 0xY+4OvrEWVVgnV5RA7Dz81Sw8Gkn5lppbuGDCbnoA6ws/iY6vDcEXWC1lfHPiLu V5lPMODT6SlrTVw+ezbrRYNsVdD6/gZ+tl2yyLeDClhrsM8NcBOabO5vpMs0npbh YHqfNwfIu+z8d8Bgn8T+tNft2I8bclueDB/rAd2crzpNpSqS4ns/NFE/TVg736T+ XKxCIYRJuRY7LLIH7tZZ/575G30FKfh5wHKI04TPC+FdXk00aCERUVl+R/20Pjng == X-ME-Sender: LXqvbgbLxT0yMXfD50> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrgeelgdefudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesrgdtre erreerjeenucfhrhhomhepfdghvghslhgvhicurfgvnhhgfdcuoeifvghslhgvhiesphgv nhhgfhgrmhhilhihrdguvgeqnecuggftrfgrthhtvghrnhepvefhvdevtdeuhfehteegfe dtjeeukeekudfhhfevgefhvdfhgeejlefgffdtkeejnecuffhomhgrihhnpehmvghtrggt phgrnhdrohhrghdptghrtgdrihgurdgruhenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpeifvghslhgvhiesphgvnhhgfhgrmhhilhihrdguvg X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 63E3851C005E; Sat, 6 Feb 2021 20:04:15 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-93-gef6c4048e6-fm-20210128.002-gef6c4048 Mime-Version: 1.0 Message-Id: <9de9a24d-b8e3-4f26-81b3-0aeb8b6b8427-at-www.fastmail.com> In-Reply-To: References: Date: Sun, 07 Feb 2021 09:03:55 +0800 From: "Wesley Peng" To: modperl-at-perl.apache.org Subject: Re: [Hangout - NYLXS] Moving ExecCGI to mod_perl - performance and custom 'modules' X-BeenThere: hangout-at-nylxs.com X-Mailman-Version: 2.1.30rc1 List-Id: NYLXS Tech Talk and Politics List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1209292899==" Errors-To: hangout-bounces-at-nylxs.com Sender: "Hangout"
--===============1209292899== Content-Type: multipart/alternative; boundary=27c58d27c3ac4aacacc7e2345545bd64
--27c58d27c3ac4aacacc7e2345545bd64 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable
Is the url in your signature the website? It looks a beautiful UI design= . And you can try this method: https://metacpan.org/pod/ModPerl::Registry
Thanks.
On Sun, Feb 7, 2021, at 8:59 AM, Steven Haigh wrote: > Hi all, >=20 > So for many years I've been slack and writing perl scripts to do vario= us things - but never needed more than the normal apache +ExecCGI and Te= mplate Toolkit. >=20 > One of my sites has become a bit more popular, so I'd like to spend a = bit of time on performance. Currently, I'm seeing ~300-400ms of what I b= elieve to be execution time of the script loading, running, and then bla= tting its output to STDOUT and the browser can go do its thing.=20 >=20 > I believe most of the delay would be to do with loading perl, its modu= les etc etc >=20 > I know that the current trend would be to re-write the entire site in = a more modern, daemon based solution - and I started down the Mojoliciou= s path - but the amount of re-writing to save 1/3rd of a second seems to= be excessive >=20 > Would I be correct in thinking that mod_perl would help in this case? >=20 > I did try a basic test, but I have a 'use functions' in all my scripts= that loads a .pm with some global vars and a lot of common subs - and f= or whatever reason (can't find anything on Google as to why), none of th= e subs are recognised in the main script when loaded via ModPerl::PerlRu= n. >=20 > So throwing it out to the list - am I on the right track? wasting my t= ime? or just a simple mistake? >=20 > -- > Steven Haigh =F0=9F=93=A7 netwiz-at-crc.id.au =F0=9F=92=BB https://www.cr= c.id.au
--27c58d27c3ac4aacacc7e2345545bd64 Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
Is the url in y= our signature the website? It looks a beautiful UI design.
>And you can try this method:
Thanks.
On Sun, = Feb 7, 2021, at 8:59 AM, Steven Haigh wrote:
"cite" id=3D"qt" style=3D"">= Hi all,
So for many years I've been slack a= nd writing perl scripts to do various things - but never needed more tha= n the normal apache +ExecCGI and Template Toolkit.
iv> One of my sites has become a bit more popular, so I'd like to sp= end a bit of time on performance. Currently, I'm seeing ~300-400ms of wh= at I believe to be execution time of the script loading, running, and th= en blatting its output to STDOUT and the browser can go do its thing.&nb= sp;
I believe most of the delay would be to= do with loading perl, its modules etc etc
= I know that the current trend would be to re-write the entire site in a = more modern, daemon based solution - and I started down the Mojolicious = path - but the amount of re-writing to save 1/3rd of a second seems to b= e excessive
Would I be correct in thinking = that mod_perl would help in this case?
I di= d try a basic test, but I have a 'use functions' in all my scripts that = loads a .pm with some global vars and a lot of common subs - and for wha= tever reason (can't find anything on Google as to why), none of the subs= are recognised in the main script when loaded via ModPerl::PerlRun. =
So throwing it out to the list - am I on the r= ight track? wasting my time? or just a simple mistake?
iv id=3D"qt-geary-signature" dir=3D"auto">e:pre-wrap;background-color:rgb(255, 255, 255);">
<= span style=3D"white-space:pre-wrap;background-color:rgb(255, 255, 255);"= >--
--27c58d27c3ac4aacacc7e2345545bd64--
--===============1209292899== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline
_______________________________________________ Hangout mailing list Hangout-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/hangout
--===============1209292899==--
--===============1209292899== Content-Type: multipart/alternative; boundary=27c58d27c3ac4aacacc7e2345545bd64
--27c58d27c3ac4aacacc7e2345545bd64 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable
Is the url in your signature the website? It looks a beautiful UI design= . And you can try this method: https://metacpan.org/pod/ModPerl::Registry
Thanks.
On Sun, Feb 7, 2021, at 8:59 AM, Steven Haigh wrote: > Hi all, >=20 > So for many years I've been slack and writing perl scripts to do vario= us things - but never needed more than the normal apache +ExecCGI and Te= mplate Toolkit. >=20 > One of my sites has become a bit more popular, so I'd like to spend a = bit of time on performance. Currently, I'm seeing ~300-400ms of what I b= elieve to be execution time of the script loading, running, and then bla= tting its output to STDOUT and the browser can go do its thing.=20 >=20 > I believe most of the delay would be to do with loading perl, its modu= les etc etc >=20 > I know that the current trend would be to re-write the entire site in = a more modern, daemon based solution - and I started down the Mojoliciou= s path - but the amount of re-writing to save 1/3rd of a second seems to= be excessive >=20 > Would I be correct in thinking that mod_perl would help in this case? >=20 > I did try a basic test, but I have a 'use functions' in all my scripts= that loads a .pm with some global vars and a lot of common subs - and f= or whatever reason (can't find anything on Google as to why), none of th= e subs are recognised in the main script when loaded via ModPerl::PerlRu= n. >=20 > So throwing it out to the list - am I on the right track? wasting my t= ime? or just a simple mistake? >=20 > -- > Steven Haigh =F0=9F=93=A7 netwiz-at-crc.id.au =F0=9F=92=BB https://www.cr= c.id.au
--27c58d27c3ac4aacacc7e2345545bd64 Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
Is the url in y= our signature the website? It looks a beautiful UI design.
>And you can try this method:
Thanks.
On Sun, = Feb 7, 2021, at 8:59 AM, Steven Haigh wrote:
"cite" id=3D"qt" style=3D"">= Hi all,
So for many years I've been slack a= nd writing perl scripts to do various things - but never needed more tha= n the normal apache +ExecCGI and Template Toolkit.
iv> One of my sites has become a bit more popular, so I'd like to sp= end a bit of time on performance. Currently, I'm seeing ~300-400ms of wh= at I believe to be execution time of the script loading, running, and th= en blatting its output to STDOUT and the browser can go do its thing.&nb= sp;
I believe most of the delay would be to= do with loading perl, its modules etc etc
= I know that the current trend would be to re-write the entire site in a = more modern, daemon based solution - and I started down the Mojolicious = path - but the amount of re-writing to save 1/3rd of a second seems to b= e excessive
Would I be correct in thinking = that mod_perl would help in this case?
I di= d try a basic test, but I have a 'use functions' in all my scripts that = loads a .pm with some global vars and a lot of common subs - and for wha= tever reason (can't find anything on Google as to why), none of the subs= are recognised in the main script when loaded via ModPerl::PerlRun. =
So throwing it out to the list - am I on the r= ight track? wasting my time? or just a simple mistake?
iv id=3D"qt-geary-signature" dir=3D"auto">e:pre-wrap;background-color:rgb(255, 255, 255);">
<= span style=3D"white-space:pre-wrap;background-color:rgb(255, 255, 255);"= >--
--27c58d27c3ac4aacacc7e2345545bd64--
--===============1209292899== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline
_______________________________________________ Hangout mailing list Hangout-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/hangout
--===============1209292899==--
|
|