Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-27090

Which is quicker at runtime, REGEX or String Libraries?

    XMLWordPrintable

Details

    • Question
    • Status: Resolved
    • Not specified
    • Resolution: Done
    • None
    • None
    • Code Generator
    • None

    Description

      Which of these two implementations, of the same functionality, is quicker at runtime?

      IMPORT STD;

      s := '2022/01/27';
      REGEXREPLACE('[^0-9]',s,'');
      STD.Str.Filter(s,'0123456789');

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            allan Allan Francis Wrobel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: