refine Val "footprint" to equate long strings with multiple objects

This commit is contained in:
Vern Paxson 2024-04-29 12:39:36 -07:00
parent d7e30d9ee2
commit 1f9fa4304d
6 changed files with 20 additions and 1 deletions

View file

@ -564,6 +564,8 @@ public:
StringValPtr Replace(RE_Matcher* re, const String& repl, bool do_all);
protected:
unsigned int ComputeFootprint(std::unordered_set<const Val*>* analyzed_vals) const override;
void ValDescribe(ODesc* d) const override;
ValPtr DoClone(CloneState* state) override;