Revision: 54536
          http://brlcad.svn.sourceforge.net/brlcad/?rev=54536&view=rev
Author:   brlcad
Date:     2013-03-06 19:54:55 +0000 (Wed, 06 Mar 2013)
Log Message:
-----------
remove the pooling on geometry objects at the IO layer.  testing of the pooling 
calls indicated performance was substantially slower than system malloc/free 
(by an order of magnitude).

Modified Paths:
--------------
    brlcad/trunk/src/librt/db5_io.c
    brlcad/trunk/src/librt/db5_scan.c

Modified: brlcad/trunk/src/librt/db5_io.c
===================================================================
--- brlcad/trunk/src/librt/db5_io.c     2013-03-06 17:33:47 UTC (rev 54535)
+++ brlcad/trunk/src/librt/db5_io.c     2013-03-06 19:54:55 UTC (rev 54536)
@@ -361,11 +361,7 @@
     }
 
     /* Now that we finally know how large the object is, get it all */
-#if 1
-    rip->buf = (unsigned char *)bu_pool_get((size_t)rip->object_length);
-#else
     rip->buf = (unsigned char *)bu_malloc(rip->object_length, "raw v5 object");
-#endif
 
     *((struct db5_ondisk_header *)rip->buf) = header;  /* struct copy */
     memcpy(rip->buf+sizeof(header), lenbuf, count);

Modified: brlcad/trunk/src/librt/db5_scan.c
===================================================================
--- brlcad/trunk/src/librt/db5_scan.c   2013-03-06 17:33:47 UTC (rev 54535)
+++ brlcad/trunk/src/librt/db5_scan.c   2013-03-06 19:54:55 UTC (rev 54536)
@@ -92,11 +92,7 @@
            (*handler)(dbip, &raw, addr, client_data);
            nrec++;
            if (raw.buf) {
-#if 1
-               bu_pool_put((void *)raw.buf, (size_t)raw.object_length);
-#else
                bu_free(raw.buf, "raw v5 object");
-#endif
                raw.buf = NULL;
            }
        }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to