Hi Zyx

Here’s a final patch for this release – it swaps the order of two data members 
in PdfReference which causes PdfObject to shrink from 64 bytes to 56 bytes on 
64-bit platforms (no size change on 32-bit platforms)

On some PDFs this saves 12.8% allocated memory, and on one particular document 
it reduces memory requirements from 3317 MB to 2898 MB (saving 419 MB) on 
64-bit platforms. This is in addition to memory saved by previous patches.

BTW There’s still a lot of wasted space inside PdfObject - about 28% of the 
space allocated for PdfObject is alignment padding on 32-bit platforms. 
Eliminating this will reduce memory requirements by 28%, but requires bigger 
changes than just re-ordering members. I’ll look at that for next release.

Cheers
Mark

-- 
Mark Rogers - mark.rog...@powermapper.com
PowerMapper Software Ltd - www.powermapper.com
Registered in Scotland No 362274 Quartermile 2 Edinburgh EH3 9GL
 




On 11/01/2017, 20:34, "zyx" <z...@litepdf.cz> wrote:

    On Tue, 2017-01-10 at 14:23 +0000, Mark Rogers wrote:
    > Here are the patches:
    
        Hi,
    both patches look fine from my point of view, thus I committed them as
    revision 1809 and revision 1810:
    http://sourceforge.net/p/podofo/code/1809
    http://sourceforge.net/p/podofo/code/1810
    
        Thanks and bye,
        zyx
    -- 
    http://www.litePDF.cz                                 i...@litepdf.cz
    
    
------------------------------------------------------------------------------
    Developer Access Program for Intel Xeon Phi Processors
    Access to Intel Xeon Phi processor-based developer platforms.
    With one year of Intel Parallel Studio XE.
    Training and support from Colfax.
    Order your platform today. http://sdm.link/xeonphi
    _______________________________________________
    Podofo-users mailing list
    Podofo-users@lists.sourceforge.net
    https://lists.sourceforge.net/lists/listinfo/podofo-users
    

Attachment: PoDoFo-patch3.diff
Description: PoDoFo-patch3.diff

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to