cache: began base implementation of "shifting" the cache

Should be a fairly important optimization to make.
This commit is contained in:
itsmattkc
2020-06-02 01:38:12 +10:00
parent 6acfe995fa
commit 11bfe61208
8 changed files with 154 additions and 0 deletions
+4
View File
@@ -46,6 +46,8 @@ public:
bool IsFullyValidated() const;
void Shift(const rational& from, const rational& to);
const TimeRangeList& GetInvalidatedRanges() const
{
return invalidated_;
@@ -70,6 +72,8 @@ protected:
virtual void InvalidateEvent(const TimeRange& range);
virtual void ShiftEvent(const rational& from, const rational& to);
private:
TimeRangeList invalidated_;