name+data: Small improvements

Change-Id: If366a2149cc52a6ee0e3113761772a6e9de6f735
diff --git a/src/name.cpp b/src/name.cpp
index b71c23c..35380c3 100644
--- a/src/name.cpp
+++ b/src/name.cpp
@@ -360,6 +360,9 @@
   wire_ = wire;
   wire_.parse();
 
+  components_.clear();
+  components_.reserve(wire_.getAll().size());
+
   for (Block::element_const_iterator i = wire_.getAll().begin();
        i != wire_.getAll().end();
        ++i)