From: SourceForge.net <no...@so...> - 2007-04-11 14:22:39
|
Bugs item #1698489, was opened at 2007-04-11 16:20 Message generated for change (Comment added) made by mediumnet You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=391879&aid=1698489&group_id=27895 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Import/Export Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Xuan Baldauf (mediumnet) Assigned to: Nobody/Anonymous (nobody) Summary: Bursting of filedescriptor usage in org.tm4j.topicmap.cmd.* Initial Comment: When merging a large amount of small XTM files, the number of filedescriptors run out. The reason is that, currently, all files are opened before the first file is processed. This practically makes processing of a certain amount of files in one run impossible. ---------------------------------------------------------------------- >Comment By: Xuan Baldauf (mediumnet) Date: 2007-04-11 16:22 Message: Logged In: YES user_id=506885 Originator: YES The solution works by delaying the actual opening of the underlying FileInputStream or URLInputStream up to the point the files are actually read and by hurrying up closing the underlying InputStream by closing directly after the last byte was read. File Added: onDemandInputStreams.patch ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=391879&aid=1698489&group_id=27895 |