Skip to content

Commit 7c3c7d1

Browse files
authored
MB-59575: Refactor member variables alignment of IndexFlatCodes (#22)
- moving the codes_ptr down below so that we skip compiler optimization for that pointer member variable
1 parent 17c3992 commit 7c3c7d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

faiss/IndexFlatCodes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ struct IndexFlatCodes : Index {
2424

2525
/// encoded dataset, size ntotal * code_size
2626
std::vector<uint8_t> codes;
27-
uint8_t* codes_ptr;
2827
bool mmaped; // true if codes_ptr is pointing to a mmaped region
2928
size_t mmaped_size;
29+
uint8_t* codes_ptr;
3030

3131
IndexFlatCodes();
3232

0 commit comments

Comments
 (0)