Files
UnrealEngineUWP/Engine/Source/Programs/Unsync/Private/UnsyncHashTable.h
Yuriy ODonnell 7389b826b6 unsync - Initial implementation of the "scavenge" mode which aims to reduce download times by reusing data outside of the final sync directory
This is useful for people who want to download each data set into a uniquely named directory, instead of always patching the last downloaded version.

Current implementation is highly experimental and should only be used for testing purposes.

#jira UE-178864
#rb none
#preflight skip

[CL 25190443 by Yuriy ODonnell in ue5-main branch]
2023-04-25 17:41:49 -04:00

20 lines
594 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
UNSYNC_THIRD_PARTY_INCLUDES_START
#include <flat_hash_map.hpp>
UNSYNC_THIRD_PARTY_INCLUDES_END
namespace unsync {
template<typename K, typename V, typename Hash = std::hash<K>, typename Eq = std::equal_to<K>>
// using THashMap = std::unordered_map<K,V,Hash,Eq>;
using THashMap = ska::flat_hash_map<K, V, Hash, Eq>;
template<typename K, typename Hash = std::hash<K>, typename Eq = std::equal_to<K>>
// using THashSet = std::unordered_set<K, Hash, Eq>;
using THashSet = ska::flat_hash_set<K, Hash, Eq>;
} // namespace unsync