Skip to content

Latest commit

 

History

History
71 lines (50 loc) · 2.02 KB

CHANGELOG.md

File metadata and controls

71 lines (50 loc) · 2.02 KB

0.7.2

  • Refactor native extension codes to set rb_data_type_t.wrap_struct_name for each metric and dtype.

0.7.1

  • Fix bug that item elements are converted to unsingned integers when dtype is set to float32 (#3).

0.7.0

  • Update bundled Annoy version to 1.17.1.
  • Refactor config files.

0.6.1

  • Refactor codes and configs with RuboCop and clang-format.

0.6.0

  • Add dtype argument to initialize method to specify the data type of vector element. If you want to load a search index created with the Python bindings, specify 'float32' to the dtype argument.
require 'annoy'

f = 40
t = Annoy::AnnoyIndex.new(n_features: f, metric: 'angular', dtype: 'float32')
t.load('index_with_python_bindings.ann')
  • Change the data type of item index from int to int32_t.
  • Update type declarations and documentations.
  • Introduce conventional commits.

0.5.0

Breaking change

  • Remove -march=native and -DANNOYLIB_MULTITHREADED_BUILD from CXXFLAGS. For example, the installation command to reproduce the same build as the previous version is as follows:
$ gem install annoy-rb -- --with-cxxflags=-march=native -DANNOYLIB_MULTITHREADED_BUILD
$ bundle config --local build.annoy-rb "--with-cxxflags=-march=native -DANNOYLIB_MULTITHREADED_BUILD"
$ bundle install

0.4.0

  • Add dummy constructor call at memory allocation of binding class to prevent occuring segment fault on GC when initialize method is failed.

0.3.0

  • Add type declaration file: sig/annoy.rbs
  • Fix get_distance method to return integer typed value on hamming metric index.
  • Rename native extension files.

0.2.3

  • Add GC guard to index saving and loading methods.

0.2.2

  • Replace Data_ functions to TypedData_ functions.

0.2.1

  • Fix to free char array of error message before calling rb_raise.
  • Fix to use array allocated with ruby_xmalloc instead of vector class in C++.

0.2.0

  • Update bundled Annoy version to 1.17.0.
  • Support multithreaded index building.

0.1.0

  • First release.