RE: Is creating new AutoDetectParsers expensive?

2016-09-30 Thread Allison, Timothy B.
In an earlier version of tika-batch, we had a single AutoDetectParser per thread, and we had no problems. I experimented with a single AutoDetectParser across the threads, and we didn’t have problems. Because of configuration issues, tika-batch is now creating a new parser for each file. In

Re: Is creating new AutoDetectParsers expensive?

2016-09-30 Thread Haris Osmanagic
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. wrote: > You can

Re: Code parser?

2016-09-30 Thread Mark Kerzner
Nick, Marcus, thank you for your help. It works great, and one of the problems that I saw was indeed with my code, not Tika. Mark Mark Kerzner, SHMsoft , Book a call with me here Mobile: 713-724-2534 Skype: mark.kerzner1

RE: Is creating new AutoDetectParsers expensive?

2016-09-30 Thread Allison, Timothy B.
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! ☺ From: Haris Osmanagic [mailto:haris.osmana...@gmail.com] Sent: Friday, September 30, 2016 10:36 AM To: user@tika.apache.org