[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[LDM #KDR-961244]: 20201007: Query on pqact and best practices for regex



Hi Gregg,

The regex(1) utility (part of the LDM package) can help you determine which 
regular expression is more efficient if you execute it under the time(1) 
utility. regex(1) has a man(1) page. See 
<https://www.unidata.ucar.edu/software/ldm/ldm-current/basics/ERE.html> for a 
related example.

> I looked through the LDM support archives and didn't find an answer to
> this query.  So I appreciate your time.
> 
> In LDM I would like to know what provides more efficiency, or what is
> the best practice in terms of CPU efficiency when one is creating a new
> regex pattern.
> 
> For example, outside of the output path being different, in the
> following two pqact.conf entries, is one preferable over the other in
> LDM in terms of CPU cycles, regex processing, etc.?
> 
> #. /nfsdata/realtime/outgoing/spcnids/CONUS/EchoTop_18_20201007-161834.gz
> 
> EXP  
>   ^.........................................EchoTop_18_..(......).(....).*
> 
>         PIPE    -close w2gunzip.sh
> /NAWIPS/nadata2/images/satellite/RADAR_NATL/MRMS-ECHO18/ECHO18_\1_\2
> 
> 
> 
> EXP    
> EchoTop_18_([0-9][0-9][0-9][0-9][0-1][0-9][0-3][0-9])-([0-2][0-9][0-5][0-9])([0-5][0-9]).gz
>         PIPE    -close w2gunzip.sh
> /data/radar/mrms/nat/tops-18/\1_\2.tops-18_nat

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: KDR-961244
Department: Support LDM
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.