File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
ydb/core/tx/columnshard/engines/storage/indexes/bloom_ngramm Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -66,9 +66,14 @@ class TNGrammBuilder {
6666
6767 ui64 CalcHash (const char * data, const ui32 size) const {
6868 if (size == 3 ) {
69- return ((ui64)data[0 ]) | (((ui64)data[1 ]) << 8 ) | (((ui64)data[2 ]) << 16 );
69+ return (*(const ui32*)data) & 0x00FFFFFF ;
70+ // TStringBuilder sb;
71+ // sb << res << "/" << (ui32)((ui8*)&res)[0] << "/" << (ui32)((ui8*)&res)[1] << "/" << (ui32)((ui8*)&res)[2] << "/"
72+ // << (ui32)((ui8*)&res)[3] << " vs " << (ui64)data[0] << "/" << (((ui64)data[1])) << "/" << (((ui64)data[2])) << Endl;
73+ // Cerr << sb;
74+ // return (ui64(*(const ui32*)data)) >> 8;
7075 } else if (size == 4 ) {
71- return *(ui32*)& data[ 0 ] ;
76+ return *(const ui32*)data;
7277 } else {
7378 uint64_t h = 2166136261 ;
7479 for (size_t i = 0 ; i < size; i++) {
You can’t perform that action at this time.
0 commit comments