A new release of RcppAnnoy is now on CRAN.
RcppAnnoy is the Rcpp-based R integration of the nifty Annoy library by Erik Bernhardsson. Annoy is a small and lightweight C++ template header library for very fast approximate nearest neighbours—originally developed to drive the famous Spotify music discovery algorithm.
This release brings several updates. First and foremost, the upstream Annoy C++ code was updated from version 1.12 to 1.16 bringing both speedier code thanks to AVX512 instruction (where available) and new functionality. Which we expose in two new functions of which buildOnDisk()
may be of interest for some using the file-back indices. We also corrected a minor wart in which a demo file was saved (via example()
) to a user directory; we now use tempfile()
as one should, and contributed two small Windows build changes back to Annoy.
Detailed changes follow below.
Changes in version 0.0.13 (2019-09-23)
In example(), the saved and loaded filename is now obtained via tempfile() to not touch user directories per CRAN Policy (Dirk).
RcppAnnoy was again synchronized with Annoy upstream leading to enhanced performance and more features (Dirk #48).
Minor changes made (and send as PRs upstream) to adapt both
annoylib.h
andmman.h
changes (Dirk).A spurious command was removed from one vignette (Peter Hickey in #49).
Two new user-facing functions onDiskBuild() and unbuild() were added (Dirk in #50).
Minor tweaks were made to two tinytest-using test files (Dirk).
Courtesy of CRANberries, there is also a diffstat report for this release.
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. Please report excessive re-aggregation in third-party for-profit settings.