[GRASS-dev] [GRASS GIS] #2033: Moving g.pnmcomp to lib/display to improve render performance of wxGUI

GRASS GIS trac at osgeo.org
Wed Jul 24 07:32:28 PDT 2013


#2033: Moving g.pnmcomp to lib/display to improve render performance of wxGUI
----------------------------------------------+-----------------------------
 Reporter:  huhabla                           |       Owner:  grass-dev@…              
     Type:  enhancement                       |      Status:  new                      
 Priority:  major                             |   Milestone:  7.0.0                    
Component:  wxGUI                             |     Version:  svn-trunk                
 Keywords:  display, Python, multiprocessing  |    Platform:  All                      
      Cpu:  All                               |  
----------------------------------------------+-----------------------------

Comment(by huhabla):

 I have updated the display benchmark script to compare the PPM performance
 of PIL and g.pnmcomp. System: Ubuntu 12.04 LTS,  AMD Phenom(tm) II X6
 1090T Processor, 16GB RAM, 1TB Harddisk. Please make sure that you have
 the latest grass7 svn version to reproduce the benchmark results, since
 there was a bug in the pygrass Module run() function, that did not allow
 parallel process runs.

 {{{
 GRASS 7.0.svn (nc_spm_08_grass7):~/Downloads > python display_bench.py
 projection: 99 (Lambert Conformal Conic)
 zone:       0
 datum:      nad83
 ellipsoid:  a=6378137 es=0.006694380022900787
 north:      228500
 south:      215000
 west:       630000
 east:       645000
 nsres:      10
 ewres:      10
 rows:       1350
 cols:       1500
 cells:      2025000
 *** Serial runs
 Run     Size    Driver  Bitmap  mmap    render  composite
 1       1024    png     png     FALSE   0.859   0.135  PIL
 2       1024    png     bmp     FALSE   0.447   0.044  PIL
 3       1024    png     bmp     TRUE    0.446   0.044  PIL
 4       1024    png     ppm     FALSE   0.430   0.046  PIL
 5       1024    png     ppm     FALSE   0.461   0.066  g.pnmcomp
 6       1024    cairo   png     FALSE   0.900   0.102  PIL
 7       1024    cairo   bmp     FALSE   0.535   0.055  PIL
 8       1024    cairo   bmp     TRUE    0.527   0.045  PIL
 9       1024    cairo   ppm     FALSE   0.579   0.050  PIL
 10      1024    cairo   ppm     FALSE   0.579   0.051  g.pnmcomp
 11      4096    png     png     FALSE   5.106   1.513  PIL
 12      4096    png     bmp     FALSE   2.728   0.602  PIL
 13      4096    png     bmp     TRUE    2.724   0.596  PIL
 14      4096    png     ppm     FALSE   2.402   0.604  PIL
 15      4096    png     ppm     FALSE   2.129   0.306  g.pnmcomp
 16      4096    cairo   png     FALSE   4.011   1.236  PIL
 17      4096    cairo   bmp     FALSE   1.273   0.633  PIL
 18      4096    cairo   bmp     TRUE    1.281   0.599  PIL
 19      4096    cairo   ppm     FALSE   2.510   0.606  PIL
 20      4096    cairo   ppm     FALSE   2.230   0.311  g.pnmcomp
 *** Parallel runs
 Run     Size    Driver  Bitmap  mmap    render  composite
 1       1024    png     png     FALSE   0.856   0.127  PIL
 2       1024    png     bmp     FALSE   0.456   0.052  PIL
 3       1024    png     bmp     TRUE    0.457   0.044  PIL
 4       1024    png     ppm     FALSE   0.442   0.048  PIL
 5       1024    png     ppm     FALSE   0.447   0.059  g.pnmcomp
 6       1024    cairo   png     FALSE   0.902   0.100  PIL
 7       1024    cairo   bmp     FALSE   0.535   0.049  PIL
 8       1024    cairo   bmp     TRUE    0.528   0.042  PIL
 9       1024    cairo   ppm     FALSE   0.586   0.046  PIL
 10      1024    cairo   ppm     FALSE   0.595   0.063  g.pnmcomp
 11      4096    png     png     FALSE   4.481   1.535  PIL
 12      4096    png     bmp     FALSE   2.331   0.608  PIL
 13      4096    png     bmp     TRUE    2.344   0.595  PIL
 14      4096    png     ppm     FALSE   2.139   0.603  PIL
 15      4096    png     ppm     FALSE   1.808   0.294  g.pnmcomp
 16      4096    cairo   png     FALSE   3.374   1.226  PIL
 17      4096    cairo   bmp     FALSE   1.269   0.619  PIL
 18      4096    cairo   bmp     TRUE    1.283   0.586  PIL
 19      4096    cairo   ppm     FALSE   2.117   0.598  PIL
 20      4096    cairo   ppm     FALSE   1.790   0.486  g.pnmcomp
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2033#comment:8>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list