message: ENH: don't call vector.size() in a for loop
diff: @@ -129,10 +129,13 @@ void LumberjackStream::write()
  }
  if ( m_lj->isOutputNode() ) {
  +
  std::vector< asctoolkit::lumberjack::Message* > messages =
  m_lj->getMessages();
  - for (int i=0; i<(int)(messages.size()); ++i) {
  + const int nmessages = static_cast< int >( messages.size() );
  + for ( int i=0; i < nmessages; ++i) {
  +
  (*m_stream) << this->getFormatedMessage( message::getLevelAsString(
  static_cast< message::Level >(
  messages[i]->level()) ),
  @@ -142,6 +145,7 @@ void LumberjackStream::write()
  messages[i]->fileName(),
  messages[i]->lineNumber() );
  }
  +
  m_lj->clearMessages();
  }
  }
  