MESSAGE
DATE | 2021-02-06 |
FROM | Steven Haigh
|
SUBJECT | Subject: [Hangout - NYLXS] Moving ExecCGI to mod_perl - performance and
|
From hangout-bounces-at-nylxs.com Sun Feb 7 10:45:03 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 E64F7163FFC; Sun, 7 Feb 2021 10:45:01 -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 C19D0163FFC; 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.GH25439-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-he-de.apache.org (mxout1-he-de.apache.org [95.216.194.37]) by mrbrklyn.com (Postfix) with ESMTP id 1E97D163FCE for ; Sat, 6 Feb 2021 19:59:53 -0500 (EST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-he-de.apache.org (ASF Mail Server at mxout1-he-de.apache.org) with SMTP id 0743662CC9 for ; Sun, 7 Feb 2021 00:59:49 +0000 (UTC) Received: (qmail 20686 invoked by uid 500); 7 Feb 2021 00:59:48 -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 20673 invoked by uid 99); 7 Feb 2021 00:59:47 -0000 Received: from spamproc1-he-de.apache.org (HELO spamproc1-he-de.apache.org) (116.203.196.100) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Feb 2021 00:59:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamproc1-he-de.apache.org (ASF Mail Server at spamproc1-he-de.apache.org) with ESMTP id 97E791FF39A for ; Sun, 7 Feb 2021 00:59:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamproc1-he-de.apache.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 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, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamproc1-he-de.apache.org (amavisd-new); dkim=pass (4096-bit key) header.d=crc.id.au Received: from mx1-he-de.apache.org ([116.203.227.195]) by localhost (spamproc1-he-de.apache.org [116.203.196.100]) (amavisd-new, port 10024) with ESMTP id ZhIbedDiTnqk for ; Sun, 7 Feb 2021 00:59:45 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=202.172.99.24; helo=mailfilter.crc.id.au; envelope-from=netwiz-at-crc.id.au; receiver= Received: from mailfilter.crc.id.au (mailfilter.crc.id.au [202.172.99.24]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id 1AA227FC47 for ; Sun, 7 Feb 2021 00:59:44 +0000 (UTC) Received: from mailfilter.crc.id.au (localhost [127.0.0.1]) by mailfilter.crc.id.au (Proxmox) with ESMTP id 64EB93A9 for ; Sun, 7 Feb 2021 11:59:40 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crc.id.au; h=cc :content-type:content-type:date:from:from:message-id :mime-version:reply-to:subject:subject:to:to; s=default; bh=vNEn 4B4pJ5RoGAvYK3sXuSVGfHK/TQQnZHCk2nujtpo=; b=lk6Zr3GzDRJlGm4Sz7Pr c2QC7NW2Xl9lTHMQP4d4bfdlKmRlgFP7wfgdO18tOSEqXalBN75vyBQMJU4oBxub oRzaz1cz+mFlQg/Wi23RTCuylu13bpeg3r4zLod/vR+8rrQgYgB/yZ/df5wqlRbd SVxhOrcM7qHlKwlEHBScF7U7+PDgkY3WhNj96rqNvldXL+EI4WQcx6vAidr7s0oK Pt6Ii0BFqP0wCEHkhRUnxurqdmPBfaj9bQOqmX67Wm0MC5gIpi2JC/GL/yvjVyVc B7X8+bU1kJUQHdxn4g+/SxRQMhgK+vCUJBxJqasAXgm011rkRcOkfsTQAUsSwsQ6 ui5F9O68eIwj5tggJg0p65hehWl6nyaNplmxcFYLYb+HNdEfSRuyQpIRD6SWgc2p vsGfn1aENxb04WatVq4dGb6k40jSvmEkGnD0CmduDaQb5z2ajXDuUHWdZbhKd2hz /BznepiyOJe7k1/9+eb9tT8lkpwBQyH+9NTA7f4J9zk7ojrbdAJzygYIdTjBYqqs cYqbkIgY025+UW0ooxmObnt0AkUqRZXzbuuHMkK9U2hXzAPTYIjEmPVuHIKfz75v gaL28A59kKG1ZRQ0p6UL86ralt7JPu4cRO4RnITnXo9t5IWIwqsSdFWH3PKGkXDm rKqot0clsotMGe5iT12LMYI= Date: Sun, 07 Feb 2021 11:59:34 +1100 From: Steven Haigh To: modperl-at-perl.apache.org Message-Id: X-Mailer: geary/3.38.1 MIME-Version: 1.0 Subject: [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="===============1681417257==" Errors-To: hangout-bounces-at-nylxs.com Sender: "Hangout"
--===============1681417257== Content-Type: multipart/alternative; boundary="=-YC+pWwoHiISR4xT3qIAr"
--=-YC+pWwoHiISR4xT3qIAr Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable
Hi all,
So for many years I've been slack and writing perl scripts to do=20 various things - but never needed more than the normal apache +ExecCGI=20 and Template Toolkit.
One of my sites has become a bit more popular, so I'd like to spend a=20 bit of time on performance. Currently, I'm seeing ~300-400ms of what I=20 believe to be execution time of the script loading, running, and then=20 blatting its output to STDOUT and the browser can go do its thing.
I believe most of the delay would be to do with loading perl, its=20 modules etc etc
I know that the current trend would be to re-write the entire site in a=20 more modern, daemon based solution - and I started down the Mojolicious=20 path - but the amount of re-writing to save 1/3rd of a second seems to=20 be excessive.
Would I be correct in thinking that mod_perl would help in this case?
I did try a basic test, but I have a 'use functions' in all my scripts=20 that loads a .pm with some global vars and a lot of common subs - and=20 for whatever reason (can't find anything on Google as to why), none of=20 the subs are recognised in the main script when loaded via=20 ModPerl::PerlRun.
So throwing it out to the list - am I on the right track? wasting my=20 time? or just a simple mistake?
-- Steven Haigh
=F0=9F=93=A7 netwiz-at-crc.id.au =F0=9F=92=BB https://www.crc.id.au
--=-YC+pWwoHiISR4xT3qIAr Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all,
S= o for many years I've been slack and writing perl scripts to do various thi= ngs - but never needed more than the normal apache +ExecCGI and Template To= olkit.
One of my sites has become a bit more popul= ar, so I'd like to spend a bit of time on performance. Currently, I'm seein= g ~300-400ms of what I believe to be execution time of the script loading, = running, and then blatting its output to STDOUT and the browser can go do i= ts thing.
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 - b= ut the amount of re-writing to save 1/3rd of a second seems to be excessive=
Would I be correct in thinking that mod_perl wou= ld help in this case?
I did try a basic test, but = I have a 'use functions' in all my scripts that loads a .pm with some globa= l vars and a lot of common subs - and for whatever reason (can't find anyth= ing on Google as to why), none of the subs are recognised in the main scrip= t when loaded via ModPerl::PerlRun.
So throwing it= out to the list - am I on the right track? wasting my time? or just a simp= le mistake? style=3D"white-space: pre-wrap; background-color: rgb(255, 255, 255);"> =
5, 255, 255);">-- --=-YC+pWwoHiISR4xT3qIAr--
--===============1681417257== 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
--===============1681417257==--
--===============1681417257== Content-Type: multipart/alternative; boundary="=-YC+pWwoHiISR4xT3qIAr"
--=-YC+pWwoHiISR4xT3qIAr Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable
Hi all,
So for many years I've been slack and writing perl scripts to do=20 various things - but never needed more than the normal apache +ExecCGI=20 and Template Toolkit.
One of my sites has become a bit more popular, so I'd like to spend a=20 bit of time on performance. Currently, I'm seeing ~300-400ms of what I=20 believe to be execution time of the script loading, running, and then=20 blatting its output to STDOUT and the browser can go do its thing.
I believe most of the delay would be to do with loading perl, its=20 modules etc etc
I know that the current trend would be to re-write the entire site in a=20 more modern, daemon based solution - and I started down the Mojolicious=20 path - but the amount of re-writing to save 1/3rd of a second seems to=20 be excessive.
Would I be correct in thinking that mod_perl would help in this case?
I did try a basic test, but I have a 'use functions' in all my scripts=20 that loads a .pm with some global vars and a lot of common subs - and=20 for whatever reason (can't find anything on Google as to why), none of=20 the subs are recognised in the main script when loaded via=20 ModPerl::PerlRun.
So throwing it out to the list - am I on the right track? wasting my=20 time? or just a simple mistake?
-- Steven Haigh
=F0=9F=93=A7 netwiz-at-crc.id.au =F0=9F=92=BB https://www.crc.id.au
--=-YC+pWwoHiISR4xT3qIAr Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all,
S= o for many years I've been slack and writing perl scripts to do various thi= ngs - but never needed more than the normal apache +ExecCGI and Template To= olkit.
One of my sites has become a bit more popul= ar, so I'd like to spend a bit of time on performance. Currently, I'm seein= g ~300-400ms of what I believe to be execution time of the script loading, = running, and then blatting its output to STDOUT and the browser can go do i= ts thing.
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 - b= ut the amount of re-writing to save 1/3rd of a second seems to be excessive=
Would I be correct in thinking that mod_perl wou= ld help in this case?
I did try a basic test, but = I have a 'use functions' in all my scripts that loads a .pm with some globa= l vars and a lot of common subs - and for whatever reason (can't find anyth= ing on Google as to why), none of the subs are recognised in the main scrip= t when loaded via ModPerl::PerlRun.
So throwing it= out to the list - am I on the right track? wasting my time? or just a simp= le mistake? style=3D"white-space: pre-wrap; background-color: rgb(255, 255, 255);"> =
5, 255, 255);">-- --=-YC+pWwoHiISR4xT3qIAr--
--===============1681417257== 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
--===============1681417257==--
|
|