Andi,

Which memory packing was used?

Ron

On Apr 17, 2008, at 3:47 PM, Andi Jahja wrote:

> Hi,
>
> I attached herewith an interesting comparison between Harbour and
> xHarbour performance. Application is a Window GUI. The states are  
> as of
> when 50 MDI Windows are opened, and when application exit.
>
> The report says that xHarbour consumed memory twice of that of  
> Harbour.
> But an interesting value can be noted when application exit,where
> xHarbour releases memory a bit better.
>
> ===============================
> HARBOUR, STATE ON 50 MDI OPENED:
> ===============================
>         RESOURCES                         RESOURCE COUNT           RESOURCE 
> SIZE
> -----------------------------------     
> --------------------  ---------------------
> AREA               ITEMS               CURRENT #     PEAK #      
> CURRENT        PEAK
> -----------------------------------     
> --------------------  ----------------------
> Errors               Error                      202        
> 202           0           0
> Memory               Virtual Memory            2576      2576     
> 10551296    10551296
> Memory               Global Heap                  1          
> 2        5744        5744
> Memory               Local Heap                   1          
> 1           1           1
> GDI                  Pen                          0          
> 2           0           0
> GDI                  Bitmap                     482        
> 488           0           0
> GDI                  Brush                        5          
> 7           0           0
> GDI                  Font                         4         
> 10           0           0
> GDI                  Palette                      2          
> 2           0           0
> GDI                  DC                           0          
> 5           0           0
> User                 Window                    1428       
> 1428           0           0
> User                 Dialog                       0          
> 1           0           0
> User                 Menu                         3          
> 3           0           0
> User                 Icon                         1          
> 2           0           0
> User                 Cursor                       1          
> 1           0           0
> User                 Timer                        1          
> 2           0           0
> User                 Window DC                    0          
> 2           0           0
> Kernel               File                         0          
> 1           0           0
> Kernel               Std. Handle                  3          
> 3           0           0
> Kernel               Find First                   0          
> 1           0           0
>
> ================================
> XHARBOUR, STATE ON 50 MDI OPENED:
> ================================
>         RESOURCES                         RESOURCE COUNT           RESOURCE 
> SIZE
> -----------------------------------     
> --------------------  ---------------------
> AREA               ITEMS               CURRENT #     PEAK #      
> CURRENT        PEAK
> -----------------------------------     
> --------------------  ----------------------
> Errors               Error                      202        
> 202           0           0
> Memory               Virtual Memory            5104      5104     
> 20905984    20905984
> Memory               Global Heap                  1          
> 2        5744        5744
> GDI                  Pen                          0          
> 2           0           0
> GDI                  Bitmap                     482        
> 488           0           0
> GDI                  Brush                        5          
> 7           0           0
> GDI                  Font                         4         
> 10           0           0
> GDI                  Palette                      2          
> 2           0           0
> GDI                  DC                           0          
> 5           0           0
> User                 Window                    1428       
> 1428           0           0
> User                 Dialog                       0          
> 1           0           0
> User                 Menu                         3          
> 3           0           0
> User                 Icon                         1          
> 2           0           0
> User                 Cursor                       1          
> 1           0           0
> User                 Timer                        1          
> 2           0           0
> User                 Window DC                    0          
> 2           0           0
> Kernel               File                         0          
> 1           0           0
> Kernel               Std. Handle                  3          
> 3           0           0
> Kernel               Find First                   0          
> 1           0           0
>
> ==================================
> HARBOUR, STATE ON APPLICATION EXIT:
> ==================================
>         RESOURCES                         RESOURCE COUNT           RESOURCE 
> SIZE
> -----------------------------------     
> --------------------  ---------------------
> AREA               ITEMS               CURRENT #     PEAK #      
> CURRENT        PEAK
> -----------------------------------     
> --------------------  ----------------------
> Errors               Error                     1195       
> 1195           0           0
> Memory               Virtual Memory             704      2592      
> 2883584    10616832
> Memory               Global Heap                  1          
> 2        5744        5744
> Memory               Local Heap                   0          
> 1           0           1
> GDI                  Pen                          0          
> 2           0           0
> GDI                  Bitmap                       0        
> 488           0           0
> GDI                  Brush                        0          
> 7           0           0
> GDI                  Font                         0         
> 10           0           0
> GDI                  Palette                      0          
> 2           0           0
> GDI                  DC                           0          
> 5           0           0
> User                 Window                       0       
> 1428           0           0
> User                 Dialog                       0          
> 1           0           0
> User                 Menu                         0          
> 3           0           0
> User                 Icon                         0          
> 2           0           0
> User                 Cursor                       0          
> 1           0           0
> User                 Timer                        0          
> 2           0           0
> User                 Window DC                    0          
> 2           0           0
> Kernel               File                         0          
> 1           0           0
> Kernel               Std. Handle                  3          
> 3           0           0
> Kernel               Find First                   0          
> 1           0           0
>
> ===================================
> XHARBOUR, STATE ON APPLICATION EXIT:
> ===================================
>         RESOURCES                         RESOURCE COUNT           RESOURCE 
> SIZE
> -----------------------------------     
> --------------------  ---------------------
> AREA               ITEMS               CURRENT #     PEAK #      
> CURRENT        PEAK
> -----------------------------------     
> --------------------  ----------------------
> Errors               Error                     1195       
> 1195           0           0
> Memory               Virtual Memory             160      5120       
> 655360    20971520
> Memory               Global Heap                  1          
> 2        5744        5744
> GDI                  Pen                          0          
> 2           0           0
> GDI                  Bitmap                       0        
> 488           0           0
> GDI                  Brush                        0          
> 7           0           0
> GDI                  Font                         0         
> 10           0           0
> GDI                  Palette                      0          
> 2           0           0
> GDI                  DC                           0          
> 5           0           0
> User                 Window                       0       
> 1428           0           0
> User                 Dialog                       0          
> 1           0           0
> User                 Menu                         0          
> 3           0           0
> User                 Icon                         0          
> 2           0           0
> User                 Cursor                       0          
> 1           0           0
> User                 Timer                        0          
> 2           0           0
> User                 Window DC                    0          
> 2           0           0
> Kernel               File                         0          
> 1           0           0
> Kernel               Std. Handle                  3          
> 3           0           0
> Kernel               Find First                   0          
> 1           0           0
>
> --
> Andi
>
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save  
> $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http:// 
> java.sun.com/javaone
> _______________________________________________
> xHarbour-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xharbour-developers
>


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
xHarbour-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to