mikemccand opened a new issue, #12543: URL: https://github.com/apache/lucene/issues/12543
### Description [Spinoff from [this comment](https://github.com/apache/lucene/issues/12513#issuecomment-1710091688) inspired by Tantivy's FST implementation] The building of an FST is inherently streamable: the way the FST freezes states as it processes inputs is a write-once, roughly append-only operation. Today, Lucene holds this growing `byte[]` entirely in RAM, and once done, writes the whole thing to disk. Yet at search time, Lucene searches the FST off-heap, doing nearly random backwards IO through `IndexInput`. Let's fix Lucene to stream the FST `byte[]` directly to `IndexOutput`? This would reduce the RAM required to build so that it is constant regardless of how large an FST you are building / how many input/output pairs you are adding to it. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
