-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove sloppy math for sin, cos and asin (#2093)
Remove the LUT implementation for `sin`, `cos` and `asin`. For `sin` and `cos` they are not faster than the hardware provided `sin` and `cos` instructions on AMD64 and ARM64. For `asin` LUT does seem to be a bit faster but hardware and LUT implementation are both in the same order of magnitude for performance and `asin` LUT unconditionally takes 1.5MiB of memory which seems a bit excessive. If the usage of `asin` is really performance sensitive (I'm not that familiar with the geo library) it might be better to lazy-load this LUT to avoid users of the bleve library that don't have a use of the geo library to inherit this 1.5MiB of memory.
- Loading branch information
Showing
4 changed files
with
10 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.