lucene-lucene-net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <>
Subject Re: Proposal Stage: Net Idiomatic Api Version
Date Tue, 04 Jan 2011 16:39:41 GMT
On Tue, Jan 4, 2011 at 11:33 AM, Michael Herndon <> wrote:
> Idisposable has more to do releasing resources and gc

according to the docs here:

It seems the 'using' statement acts like java's 'finally' block (and
will be called even in an exceptional case), thus, if you make all
Closeables as IDisposables, you will get the worst-case performance
pattern that I mentioned.

Many of lucene's objects (IndexReader, IndexWriter) are quite
expensive to close/open and so this is why i mentioned, IDisposable
can be considered harmful.

View raw message