[poppler] [PATCH] ~10% speedup for loading/parsing a PDF file through simple GooString optimization

Leonard Rosenthol leonardr at pdfsages.com
Mon Aug 14 11:41:51 PDT 2006


At 02:28 PM 8/14/2006, Reece Dunn wrote:
>I was thinking of Object::free(), and it isn't called in the destructor.

         Ah, but you'd handle that with your wrapper around Object.

         Where an Object gets used today, you could replace this with 
a new class (you called it ObjectRef, but whatever) that would be a 
smart pointer to an Object...


>I know that there are shallow copies in there as I have tried moving the
>logic of obj.free() into the destructor and failed!

         If you add reference counting, you can solve this.


>The compilers that will have a problem with bool are those that
>are 8-10 years old or older.

         Seems like a good argument to me then...


Leonard

---------------------------------------------------------------------------
Leonard Rosenthol                            <mailto:leonardr at pdfsages.com>
Chief Technical Officer                      <http://www.pdfsages.com>
PDF Sages, Inc.                              215-938-7080 (voice)
                                              215-938-0880 (fax)



More information about the poppler mailing list