Skip to content

Exp is faster than pow in gaussianKDE#10354

Open
invisibleroads wants to merge 4 commits into
visgl:masterfrom
invisibleroads:pow-to-exp
Open

Exp is faster than pow in gaussianKDE#10354
invisibleroads wants to merge 4 commits into
visgl:masterfrom
invisibleroads:pow-to-exp

Conversation

@invisibleroads

Copy link
Copy Markdown
Contributor

Background

exp is faster than pow

Change List

  • Replace pow(2.71828, -u*u/0.05555) with exp(-u*u/0.05555) in gaussianKDE.

@invisibleroads invisibleroads changed the title Pow to exp Exp is faster than pow in gaussianKDE Jun 8, 2026
@invisibleroads

Copy link
Copy Markdown
Contributor Author

@1chandu @felixpalmer

A review would be most appreciated.

It is a small fix that improves heatmap rendering performance.

@felixpalmer

Copy link
Copy Markdown
Collaborator

do you have any proof it improves performance?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants