Add a variant of map() that accepts a bitmask

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This variant can wrap the calls to op.processBlock so that it works on contiguous items that are selected by the bitmask, e.g.

      while (cursor < end) {
        while (cursor < end && !bitmap[cursor]) cursor++; 
        if (cursor < end) {
           size_t chunkEnd = cursor+1;
           while (chunkEnd < end && bitmap[chunkEnd]) chunkEnd++;
           op.processBatch(..., vals.data()+cursor, chunkEnd - cursor);
           cursor = chunkEnd;
        }
      }
      

      After that API is in place, the current implementation of the mathematical expressions can reuse it

              Assignee:
              Unassigned
              Reporter:
              Alberto Massari
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: