Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Conversation

@joseviccruz
Copy link
Contributor

This pull request adds two new methods, fsin and fcos, which use a lookup table to retrieve approximate sine and cosine values, providing a faster alternative to the traditional math functions. While these methods sacrifice some degree of precision, they offer a significant performance boost for situations where speed is of the essence.

@joseviccruz joseviccruz added the enhancement New feature or request label Apr 12, 2023
@joseviccruz joseviccruz self-assigned this Apr 12, 2023
@bcs5
Copy link

bcs5 commented Jun 13, 2023

Depois colocar benchmarks que sustentem e que mostrem o quão mais rápido vs precisão. Além de se houver, referências para se chegar a essa solução.

@joseviccruz
Copy link
Contributor Author

Depois colocar benchmarks que sustentem e que mostrem o quão mais rápido vs precisão. Além de se houver, referências para se chegar a essa solução.

Não sei se chegará a entrar, o benchmark que fiz não justificou a adição desses métodos, mas manterei em draft até que seja feito um mais confiável.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants