瀏覽代碼

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

Ian Goldberg 2 年之前
父節點
當前提交
473692210f
共有 1 個文件被更改,包括 3 次插入0 次删除
  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();