🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.tsorexx
Article #201

Re: Tuning Question

#201
From: Paul Gilmartin
Date: Wed, 27 Feb 2013 17:46
38 lines
2647 bytes
On Feb 27, 2013, at 01:46, Adrian Stern wrote:

> Actually a literal instead of a function call makes noticeable savings
>
You've said that repeatedly.  I'm not sure I understand.
Obviuosly:

    X = 'A'

will outperform:

    X = translate( 'a' )

... but that's pretty trivial.

A colleague once tested and found that for string comparisons:

    if A==B ...

slightly outperforms:

    if A=B ...

The semantics are different, but often acceptable;
sometimes preferable.  I always test:

    if RC==0 ...

Someone once claimed that by some optimization, Rexx
performs better with single-character symbols than with
multi-character symbols, perhaps more so than could be
explained by lexical analyzer overhead.

-- gil

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to LISTSERV@VM.MARIST.EDU with the message: INFO TSO-REXX
Technical Details
Message-ID: <963B3D17-FFE8-4137-A1AD-24BB9F712C55@aim.com>
Path: arc1-ca.pugleaf.net!ov8ni377pbb.1!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!novia!news-peer1!btnet!zen.net.uk!hamilton.zen.co.uk!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsreader4.netcologne.de!news.netcologne.de!news.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!newsgate.newsguy.com!newsp.newsguy.com!mdrn
References: <OF90E40CEF.0B9F302A-ON87257B1E.005FAE5D-86257B1E.006012B3@us.ibm.com> <01cd01ce144d$8deab690$a9c023b0$@com> <CAJFODxcwiY=KU19c0AWDWfmNmzmP9owjv3BtmRtn_cqzZd=Mbg@mail.gmail.com> <006701ce14c6$eb663ff0$c232bfd0$@com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 357a14e69d,bacf960b2f4a6ed8
X-Google-Attributes: gid357a14e69d,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
X-Received: by 10.69.3.161 with SMTP id bx1mr2714812pbd.1.1362278552120;
        Sat, 02 Mar 2013 18:42:32 -0800 (PST)
Path: arc1-ca.pugleaf.net!ov8ni377pbb.1!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!novia!news-peer1!btnet!zen.net.uk!hamilton.zen.co.uk!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsreader4.netcologne.de!news.netcologne.de!news.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!newsgate.newsguy.com!newsp.newsguy.com!mdrn
From: PaulGBoulder@AIM.COM (Paul Gilmartin)
Newsgroups: bit.listserv.tsorexx
Subject: Re: Tuning Question
Date: 27 Feb 2013 09:46:19 -0800
Organization: None
Lines: 38
Message-ID: <963B3D17-FFE8-4137-A1AD-24BB9F712C55@aim.com>
References: <OF90E40CEF.0B9F302A-ON87257B1E.005FAE5D-86257B1E.006012B3@us.ibm.com>
            <01cd01ce144d$8deab690$a9c023b0$@com>
            <CAJFODxcwiY=KU19c0AWDWfmNmzmP9owjv3BtmRtn_cqzZd=Mbg@mail.gmail.com>
            <006701ce14c6$eb663ff0$c232bfd0$@com>
Reply-To: TSO REXX Discussion List <TSO-REXX@vm.marist.edu>
NNTP-Posting-Host: [192.168.0.3]
Mime-Version: 1.0 (Apple Message framework v1085)
NNTP-Posting-Date: 27 Feb 2013 17:46:19 GMT
X-Received-Bytes: 1845
Bytes: 2260
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit