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

Inline get_cycles_now if rdtsc is available.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Not specified
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0.0
    • Component/s: JLib
    • Labels:
      None

      Description

      I experimented with inlining get_cycles_now(), so that it unconditionally called getTSC() (avoiding a call and a boolean test).

      My test case was an inline datset->count, so not much other work going on, but I was surprised to find that it reduced the time by 3%, so it is likely to be worth adding this as a compile option.

        Attachments

          Activity

            People

            • Assignee:
              ghalliday Gavin Halliday
              Reporter:
              ghalliday Gavin Halliday
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: