Speed up path finding by about 35%.

This commit is contained in:
JoelKatz
2013-03-04 18:57:44 -08:00
parent b8fdb3b659
commit ce401dffb6
7 changed files with 22 additions and 13 deletions

View File

@@ -19,8 +19,8 @@ public:
private:
uint32 mFlags;
RippleAddress mLowID;
RippleAddress mHighID;
uint160 mLowID;
uint160 mHighID;
STAmount mLowLimit;
STAmount mHighLimit;
@@ -44,8 +44,8 @@ public:
void setViewAccount(const uint160& accountID);
const RippleAddress getAccountID() const { return mViewLowest ? mLowID : mHighID; }
const RippleAddress getAccountIDPeer() const { return !mViewLowest ? mLowID : mHighID; }
const uint160& getAccountID() const { return mViewLowest ? mLowID : mHighID; }
const uint160& getAccountIDPeer() const { return !mViewLowest ? mLowID : mHighID; }
bool getAuth() const { return isSetBit(mFlags, mViewLowest ? lsfLowAuth : lsfHighAuth); }
bool getAuthPeer() const { return isSetBit(mFlags, !mViewLowest ? lsfLowAuth : lsfHighAuth); }