From 2ab83e1abbf5ee6d00e16056a9e9394114026f28 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 7 Jan 2017 18:25:37 -0300 Subject: Memory pool vectors (DVector) have been enormously simplified in code, and renamed to PoolVector --- core/compressed_translation.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'core/compressed_translation.cpp') diff --git a/core/compressed_translation.cpp b/core/compressed_translation.cpp index 9b39eeb2c1..f8aa3915d4 100644 --- a/core/compressed_translation.cpp +++ b/core/compressed_translation.cpp @@ -356,8 +356,8 @@ void PHashTranslation::generate(const Ref &p_from) { hash_table.resize(size); bucket_table.resize(bucket_table_size); - DVector::Write htwb = hash_table.write(); - DVector::Write btwb = bucket_table.write(); + PoolVector::Write htwb = hash_table.write(); + PoolVector::Write btwb = bucket_table.write(); uint32_t *htw = (uint32_t*)&htwb[0]; uint32_t *btw = (uint32_t*)&btwb[0]; @@ -392,7 +392,7 @@ void PHashTranslation::generate(const Ref &p_from) { print_line("total collisions: "+itos(collisions)); strings.resize(total_compression_size); - DVector::Write cw = strings.write(); + PoolVector::Write cw = strings.write(); for(int i=0;i::Read htr = hash_table.read(); + PoolVector::Read htr = hash_table.read(); const uint32_t *htptr = (const uint32_t*)&htr[0]; - DVector::Read btr = bucket_table.read(); + PoolVector::Read btr = bucket_table.read(); const uint32_t *btptr = (const uint32_t*)&btr[0]; - DVector::Read sr = strings.read(); + PoolVector::Read sr = strings.read(); const char *sptr= (const char*)&sr[0]; uint32_t p = htptr[ h % htsize]; -- cgit v1.2.3