Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Optimise reverse_byte_order/1 #107

Merged
merged 1 commit into from May 8, 2019

Conversation

bernardd
Copy link
Contributor

@bernardd bernardd commented May 8, 2019

The reverse_byte_order/1 function was not especially quick. In an Ecto postgres query with a large number of geo fields, it ended up taking a significant percentage of the total time. I have some fprof files if you're interested in details, but the short version is that this change reduced the time to process the geo fields on 2000 objects (running under fprof, so the times are larger than they would otherwise be) from 1358ms to 142ms for the same query (the first value represented 42% of the total query time).

@bryanjos
Copy link
Collaborator

bryanjos commented May 8, 2019

Awesome! thanks!

@bryanjos bryanjos merged commit ff37e0b into felt:master May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants