tflobbe opened a new issue, #15292: URL: https://github.com/apache/lucene/issues/15292
### Description Given an application that could benefit from using PanamaVectorizationProvider, I would like to be able to detect on startup if the conditions are adequate (`jdk.incubator.vector` module was added, Java is within the right range of versions, etc) so that the application can make a decision based on that (i.e. log a warning, or simply preventing to start at all if conditions aren't met). Right now, this doesn't seem possible without using some kind of reflection and hacks on the VectorizationProvider class, or by duplicating some of the initialization code on the application side and keeping it in sync with Lucene's. I was thinking we could have a `public static String getImplementationName()` or something that's allowed to be called from outside of the specific `VALID_CALLERS`. I understand much of the work around the VectorizationProvider was done to not expose the internals since they are subject to change quickly and without compatibility, but the problem right now is that something such as a java version upgrade could cause unintended perf regressions. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
