size_t hash()

in hessian2/object.hpp [437:449]


  size_t hash() const override {
    // TODO(tianqian.zyf:) Reduce CPU overhead associated with hash calculations
    static size_t hash = 0;
    if (hash != 0) {
      return hash;
    }

    hash = data_.size();
    for (auto& i : data_) {
      Utils::hashCombine(hash, i);
    }
    return hash;
  }