title: Swift: Mirror(reflecting: self) too slow?
body: <p>I am trying to make a dictionary with the properties of a class of mine.</p>
  
  <pre><code>class SomeClass() {
      var someString = "Hello, stackoverflow"
      var someInt = 42 // The answer to life, the universe and everything
      var someBool = true
  
      func objectToDict() -&gt; [String: String] {
          var dict = [String: String]()
          let reflection = Mirror(reflecting: self)
          for child in reflection.children {
              if let key = child.label {
              dict[key] = child.value as? AnyObject
          }
          return dict
      }
  }
  </code></pre>
  
  <p>but <code>objectToDict()</code> is very slow. Is there a way to speed this up, or may be another approach to add the property values to a Dictionary?</p>