Browse Source

Add a comment as to why we still have both expand() and Eval::next()

Ian Goldberg 2 years ago
parent
commit
473692210f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      rdpf.cpp

+ 3 - 0
rdpf.cpp

@@ -319,6 +319,9 @@ DPFnode RDPF::leaf(address_t input, size_t &op_counter) const
 }
 
 // Expand the DPF if it's not already expanded
+//
+// This routine is slightly more efficient than repeatedly calling
+// Eval::next(), but it uses a lot more memory.
 void RDPF::expand(size_t &op_counter)
 {
     nbits_t depth = this->depth();