×

Method for prefetching recursive data structure traversals

  • US 20050102294A1
  • Filed: 01/03/2001
  • Published: 05/12/2005
  • Est. Priority Date: 01/03/2000
  • Status: Active Grant
First Claim
Patent Images

1. A method for creating a linked list data structure to which prefetching can be applied in order to minimize the number cache misses endured during traversal, said method comprising the steps of:

  • creating a parallel data structure consisting of a plurality of partitions (N) consisting of a plurality of sublists (P), associating a state vector (S) with the data structure to maintain the state of the traversal of each sublist, and maintaining the state of the last sublist to which an element is added in a variable (H), whereby additions are made to the the head of the list by decreasing the list head index to H−

    1 modulo P and adding new nodes to the head of the list indexed by the thus updated value of the head index. pipelining the traversal across the N partitions of the data structure;

    determining the prefetch distance required in order to traverse said data structure using the aforementioned pipelined traversal, said prefetch distance being determined experimentally by the programmer, computed using prior art, or by the compiler;

    inserting prefetch instructions into the traversal loop body.

View all claims
  • 4 Assignments
Timeline View
Assignment View
    ×
    ×