Permalink
Browse files

work around perf issue with logging in wkb.cpp - refs #1175

  • Loading branch information...
1 parent c33fdfd commit 44d7a38f23640f75320986e54d28064f5529a1a5 Dane Springmeyer committed Apr 12, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/wkb.cpp
View
@@ -113,8 +113,9 @@ struct wkb_reader : boost::noncopyable
{
int type = read_integer();
+#ifdef MAPNIK_LOG
MAPNIK_LOG_DEBUG(wkb_reader) << "wkb_reader: Read=" << wkb_geometry_type_string(type) << "," << type;
-
+#endif
switch (type)
{
case wkbPoint:
@@ -401,6 +402,7 @@ struct wkb_reader : boost::noncopyable
}
}
+#ifdef MAPNIK_LOG
std::string wkb_geometry_type_string(int type)
{
std::stringstream s;
@@ -426,6 +428,7 @@ struct wkb_reader : boost::noncopyable
return s.str();
}
+#endif
};
void geometry_utils::from_wkb (boost::ptr_vector<geometry_type>& paths,

0 comments on commit 44d7a38

Please sign in to comment.