Skip to content

Commit

Permalink
Optimizing indexer for panda by removing std::vector map_locations
Browse files Browse the repository at this point in the history
  • Loading branch information
beroy committed Feb 21, 2024
1 parent 6c737ae commit 3472f5d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions apis/python/src/tiledbsoma/reindexer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include <tiledbsoma/reindexer/reindexer.h>

#include "common.h"

#define DENUM(x) .value(#x, TILEDB_##x)
namespace libtiledbsomacpp {

Expand All @@ -57,13 +56,6 @@ void load_reindexer(py::module &m) {
size_t length = buffer.shape[0];
indexer.map_locations(keys.data(), keys.size(), num_threads);
})
.def(
"map_locations",
[](IntIndexer& indexer,
std::vector<int64_t> keys,
int num_threads) {
indexer.map_locations(keys.data(), keys.size(), num_threads);
})
// Perform lookup for a large input array of keys and return the looked
// up value array (passing ownership from C++ to python)
.def(
Expand Down

0 comments on commit 3472f5d

Please sign in to comment.