mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 00:46:46 +00:00
[Databuckets] Remove memory reserve from bulk load (#4427)
This commit is contained in:
@@ -428,8 +428,6 @@ void DataBucket::BulkLoadEntities(DataBucketLoadType::Type t, std::vector<uint32
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t size_before = g_data_bucket_cache.size();
|
|
||||||
|
|
||||||
LogDataBucketsDetail("cache size before [{}] l size [{}]", g_data_bucket_cache.size(), l.size());
|
LogDataBucketsDetail("cache size before [{}] l size [{}]", g_data_bucket_cache.size(), l.size());
|
||||||
|
|
||||||
uint32 added_count = 0;
|
uint32 added_count = 0;
|
||||||
@@ -440,8 +438,6 @@ void DataBucket::BulkLoadEntities(DataBucketLoadType::Type t, std::vector<uint32
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
g_data_bucket_cache.reserve(g_data_bucket_cache.size() + added_count);
|
|
||||||
|
|
||||||
for (const auto &e: l) {
|
for (const auto &e: l) {
|
||||||
if (!ExistsInCache(e)) {
|
if (!ExistsInCache(e)) {
|
||||||
LogDataBucketsDetail("bucket id [{}] bucket key [{}] bucket value [{}]", e.id, e.key_, e.value);
|
LogDataBucketsDetail("bucket id [{}] bucket key [{}] bucket value [{}]", e.id, e.key_, e.value);
|
||||||
|
|||||||
Reference in New Issue
Block a user