🐎 made contains faster

This commit is contained in:
EntireTwix 2021-04-05 21:02:55 -07:00
parent 872be4857f
commit fb7f4b4051

View file

@ -87,7 +87,7 @@ public:
}
bool Contains(const std::string &name) const
{
return users.if_contains(name, [](const User &) {});
return users.contains(name, users.hash(name));
}
int_fast64_t GetBal(const std::string &name) const