Skip to content

Commit 13fc945

Browse files
committed
ews: slightly speed up EmbeddedInstanceKey::operator==
Compare the integer part first before taking on the (multi-byte) string.
1 parent 8ec1259 commit 13fc945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exch/ews/ews.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ struct EmbeddedInstanceKey {
5757
uint32_t aid;
5858

5959
inline bool operator==(const EmbeddedInstanceKey& o) const
60-
{return dir == o.dir && aid == o.aid;}
60+
{ return aid == o.aid && dir == o.dir; }
6161
};
6262

6363
} // namespace gromox::EWS::detail

0 commit comments

Comments
 (0)