The versionInfo() helper is massively weighed down by having to call readCitationFile() to fill out the $citation slot, but you don't need this at all when getting the version in getVersion().
It would be much faster to have getVersion() just call the C++ function that returns the version number.
Investigation of https://github.com/r-lib/lifecycle/issues/167 reveals that
getVersion()
is much slower than it needs to be, due to going throughversionInfo()
.The
versionInfo()
helper is massively weighed down by having to callreadCitationFile()
to fill out the$citation
slot, but you don't need this at all when getting the version ingetVersion()
.It would be much faster to have
getVersion()
just call the C++ function that returns the version number.