[Liblas-commits] laszip: for testing if extra freads/fwrites affect performance

liblas-commits at liblas.org liblas-commits at liblas.org
Thu Jan 6 13:02:07 EST 2011


details:   http://hg.liblas.orglaszip/rev/a8ad11ceb54b
changeset: 120:a8ad11ceb54b
user:      isenburg
date:      Thu Jan 06 10:01:53 2011 -0800
description:
for testing if extra freads/fwrites affect performance

diffstat:

 src/lasreaditemraw.hpp  |  13 +++++++++++++
 src/laswriteitemraw.hpp |  13 +++++++++++++
 2 files changed, 26 insertions(+), 0 deletions(-)

diffs (60 lines):

diff -r 89e9ea2f8f7c -r a8ad11ceb54b src/lasreaditemraw.hpp
--- a/src/lasreaditemraw.hpp	Thu Jan 06 11:40:14 2011 -0600
+++ b/src/lasreaditemraw.hpp	Thu Jan 06 10:01:53 2011 -0800
@@ -52,6 +52,18 @@
 
 class LASreadItemRaw_POINT10 : public LASreadItemRaw
 {
+public:
+  LASreadItemRaw_POINT10(){};
+  inline BOOL read(U8* item)
+  {
+    if (!instream->getBytes(item, 20)) return FALSE;       // POINT10
+    return TRUE;
+  }
+};
+
+/*
+class LASreadItemRaw_POINT10 : public LASreadItemRaw
+{
 public:
   LASreadItemRaw_POINT10(){};
   inline BOOL read(U8* item)
@@ -68,6 +80,7 @@
     return TRUE;
   };
 };
+*/
 
 class LASreadItemRaw_GPSTIME11 : public LASreadItemRaw
 {
diff -r 89e9ea2f8f7c -r a8ad11ceb54b src/laswriteitemraw.hpp
--- a/src/laswriteitemraw.hpp	Thu Jan 06 11:40:14 2011 -0600
+++ b/src/laswriteitemraw.hpp	Thu Jan 06 10:01:53 2011 -0800
@@ -52,6 +52,18 @@
 
 class LASwriteItemRaw_POINT10 : public LASwriteItemRaw
 {
+public:
+  LASwriteItemRaw_POINT10(){};
+  inline BOOL write(const U8* item)
+  {
+    if (!outstream->putBytes(item, 20)) return FALSE;       // POINT10
+    return TRUE;
+  };
+};
+
+/*
+class LASwriteItemRaw_POINT10 : public LASwriteItemRaw
+{
 public:
   LASwriteItemRaw_POINT10(){};
   inline BOOL write(const U8* item)
@@ -68,6 +80,7 @@
     return TRUE;
   };
 };
+*/
 
 class LASwriteItemRaw_GPSTIME11 : public LASwriteItemRaw
 {


More information about the Liblas-commits mailing list