Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

speed up unnormalized_util with dot expression #49

Merged
merged 1 commit into from
Feb 6, 2021
Merged

speed up unnormalized_util with dot expression #49

merged 1 commit into from
Feb 6, 2021

Conversation

Wu-Chenyang
Copy link
Contributor

#48

@zsunberg
Copy link
Member

zsunberg commented Feb 5, 2021

Hi @Wu-Chenyang , Thank you for the PR! I am a bit confused though - why does this speed things up? I thought that += and .+= do the same thing for vectors and * and .* do the same thing for a scalar multiplied by a vector. Did you observe a substantial speed-up?

@Wu-Chenyang
Copy link
Contributor Author

The reason is explained here. I've also examined its effectiveness through ProfileView.

@zsunberg
Copy link
Member

zsunberg commented Feb 6, 2021

Ok, thanks @Wu-Chenyang !

@zsunberg zsunberg merged commit 6e94aec into JuliaPOMDP:master Feb 6, 2021
@lassepe lassepe mentioned this pull request Jun 3, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants