I read the first sentence and thought: "Yes! I can save ourselves a bunch of memory!"
Then I read the second: "Oh, oh, do I dare trying it out?" : ) Thank you very much for the super-speedy response! On Fri, Sep 30, 2016 at 4:46 PM Allison, Timothy B. <talli...@mitre.org> wrote: > You can reuse AutoDetectParser in a multithreaded environment. You > shouldn’t have problems with performance or thread safety. > > > > If you find otherwise, please let us know! J > > > > *From:* Haris Osmanagic [mailto:haris.osmana...@gmail.com] > *Sent:* Friday, September 30, 2016 10:36 AM > *To:* user@tika.apache.org > *Subject:* Is creating new AutoDetectParsers expensive? > > > > Hi all! > > Let's assume there are really many files to be parsed, and the operation > is repeated a relatively large number of times each day. > > Is it, in that case, too expensive to create new AutoDetectParsers for > every file? Or, in other words, if I were to reuse a AutoDetectParser for a > large number of files, would I: > > * Have problems with thread-safety? > > * Have problems with performance? > > Thanks you very much! > > Haris Osmanagić >