[geos-commits] [SCM] GEOS branch master updated. f61d6572579ead3f0ac24c44ebc1acfbe843d497

git at osgeo.org git at osgeo.org
Fri Sep 13 11:28:25 PDT 2019


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, master has been updated
       via  f61d6572579ead3f0ac24c44ebc1acfbe843d497 (commit)
      from  9f1d3ed589a7e6f9c810a2b8a01fc79bca1ea07d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f61d6572579ead3f0ac24c44ebc1acfbe843d497
Author: Daniel Baston <dbaston at gmail.com>
Date:   Fri Sep 13 14:28:13 2019 -0400

    Use uint8_t for TopologyLocation size
    
    Reduces size of a TopologyLocation from 16 bytes to 4

diff --git a/benchmarks/ClassSizes.cpp b/benchmarks/ClassSizes.cpp
index c81b183..8a78c67 100644
--- a/benchmarks/ClassSizes.cpp
+++ b/benchmarks/ClassSizes.cpp
@@ -54,6 +54,7 @@ main()
     check(geomgraph::Edge);
     check(geomgraph::EdgeEnd);
     check(geomgraph::PlanarGraph);
+    check(geomgraph::TopologyLocation);
     check(noding::NodedSegmentString);
     check(geom::Geometry);
     check(geom::Point);
diff --git a/include/geos/geomgraph/TopologyLocation.h b/include/geos/geomgraph/TopologyLocation.h
index 7618ffb..14fcf78 100644
--- a/include/geos/geomgraph/TopologyLocation.h
+++ b/include/geos/geomgraph/TopologyLocation.h
@@ -132,7 +132,7 @@ public:
 private:
 
     std::array<geom::Location, 3> location;
-    std::size_t locationSize;
+    std::uint8_t locationSize;
 };
 
 std::ostream& operator<< (std::ostream&, const TopologyLocation&);

-----------------------------------------------------------------------

Summary of changes:
 benchmarks/ClassSizes.cpp                 | 1 +
 include/geos/geomgraph/TopologyLocation.h | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list