NightOwl888 opened a new issue #297:
URL: https://github.com/apache/lucenenet/issues/297


   As part of our effort to improve performance (#261), Microsoft has [added 
support](https://github.com/dotnet/runtime/issues/20322) for some of the 
functions we use in 
[MathUtil](https://github.com/apache/lucenenet/blob/a7f7c40895b156681beaea22e1da8f46e265a98c/src/Lucene.Net/Util/MathUtil.cs).
   
   ```c#
       // Hyperbolic Functions
       public static double Acosh(double);                 // Compute area 
hyperbolic cosine
       public static double Asinh(double);                 // Compute area 
hyperbolic sine
       public static double Atanh(double);                 // Compute area 
hyperbolic tangent
   
       public static double Log(double, double);
   ```
   
   We should run benchmarks to see if the built-in implementation is faster 
than ours, and if so reference the built-in `Math` class inside of `MathUtil` 
in .NET Standard 2.1+ as well as consider the same optimizations to `MathUtil` 
for other target frameworks.
   
   It also looks like `public static int Log(long, long)` may be able to be 
optimized.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to