Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Dont clone other bytes on when comparing two Oids. This should speedu…

…p compare operations.
  • Loading branch information...
commit f6e51addf5bafb99a0ce4330b3522c8f5ccaae51 1 parent 9d33fd3
@lanwin lanwin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  source/MongoDB/Oid.cs
View
2  source/MongoDB/Oid.cs
@@ -99,7 +99,7 @@ public int CompareTo(Oid other)
{
if(ReferenceEquals(other, null))
return 1;
- var otherBytes = other.ToByteArray();
+ var otherBytes = other._bytes;
for(var x = 0; x < _bytes.Length; x++)
if(_bytes[x] < otherBytes[x])
return -1;
Please sign in to comment.
Something went wrong with that request. Please try again.