beagle r3249 - in trunk/beagle: Filters beagled



Author: dbera
Date: 2007-01-12 01:02:47 +0000 (Fri, 12 Jan 2007)
New Revision: 3249
ViewCVS link: http://svn.gnome.org/viewcvs/beagle?rev=3249&view=rev

Modified:
   trunk/beagle/Filters/FilterPdf.cs
   trunk/beagle/beagled/Filter.cs
Log:
* Filter.cs: In our filter model, first data is extracted by repeated calls to PullText() (which in turn calls Pull() that calls DoPull() ending with DoClose()). Then hotdata is extracted by repeated calls to PullHotText() - which should only return data from the hotPool; since DoClose() has already been called on the filter, DoPull() should not be called again. Maybe its time to think of killing HotText altogether - its a burden that is not being used.

* FilterPdf.cs: AppendText() stores the data in a buffer. Returning the whole data in a single call of DoPull() will cause allocation of a huge buffer. Append only small data per call of DoPull().





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]