Probably depends on how big c.0 is.

Personally I freely mix rexx and pipelines in my code choosing what I perceive
to be as the best tool for the job.  If /I/ wanted to make that run faster,
I'd probably just compile the exec rather than recode.

i

------ Original Message ------
Received: 01:09 PM COT, 12/05/2013
From: FAULHABER Michael <[email protected]>
To: [email protected]
Subject: [CMS-PIPELINES] Pipethink a Rexx snippet

> Hello Everybody!
> 
> Is it worth to re-code following part of a routine as pipeline? Or will it
take 2 days just to get 2 seconds advantage? (Well, the truth is, I have no
idea how to code the inner loop.)
> 
> All variables contain positive integers.
> 
>    x = x2b(d2x(x))
>    do k = 1 to c.0
>       d=1
>       do i = 1 to length(x)
>          d = d*d // z
>          if substr(x, i, 1) then d = c.k*d // z
>       end i
>       c.k = d
>    end k
> (... next step is a Pipe using stem c.)
> 
> Ciao.....Mike
> 
> 
> 
> ________________________________
> CONFIDENTIALITY : This e-mail and any attachments are confidential and may
be privileged. If you are not a named recipient, please notify the sender
immediately and do not disclose the contents to another person, use it for any
purpose or store or copy the information in any medium.

Reply via email to