mikemccand commented on code in PR #12624:
URL: https://github.com/apache/lucene/pull/12624#discussion_r1360715823


##########
lucene/core/src/java/org/apache/lucene/util/fst/BytesStore.java:
##########
@@ -21,19 +21,18 @@
 import java.util.List;
 import org.apache.lucene.store.DataInput;
 import org.apache.lucene.store.DataOutput;
-import org.apache.lucene.util.Accountable;
 import org.apache.lucene.util.RamUsageEstimator;
 
 // TODO: merge with PagedBytes, except PagedBytes doesn't
 // let you read while writing which FST needs
 
-class BytesStore extends DataOutput implements Accountable {
+class BytesStore extends FSTWriter {

Review Comment:
   Actually, while it may seem RAM-wasteful to fully copy the `byte[]` node 
that are stored in `NodeHash`, if it then (eventually?) enables append-only 
writing of the FST, net/net that will likely be a RAM savings overall, once we 
finish with the [LRU NodeHash PR](https://github.com/apache/lucene/pull/12633). 
 So I think that PR is a precursor to this one?  This already long pole is 
growing longer!  Like Pinocchio's nose:
   
   
![image](https://github.com/apache/lucene/assets/796508/f473ca7f-da8d-4270-aa85-8957ee2efba4)
   
   I'll try to make time to wrap that PR up soon.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to