lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [lucenenet] NightOwl888 opened a new issue #297: Investigate Performance of Math Functions in .NET Standard 2.1+
Date Wed, 17 Jun 2020 17:13:50 GMT

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:
users@infra.apache.org



Mime
View raw message