-
Notifications
You must be signed in to change notification settings - Fork 7
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
table size is not a good predictor of algo performance in vegTypeMapGenerator
#39
Comments
Maybe just always use algo 1, which is the simpler data table one. It is possible that the data.table one got faster. |
At this point, I believe the user can't control which algo to use, but that could be added easily. Is this what you meant? or actually remove algo == 2 altogether? |
re-upping. new algo is faster for smaller tables but mid-run for LandWeb I see the old algo is faster |
I think then we should just remove the newer one and take the older one
that is better on large tables. Fast when something is fast is good, but
fast when something is slow is better.
…On Mon, Oct 24, 2022 at 3:44 PM Alex Chubaty ***@***.***> wrote:
re-upping. new algo is faster for smaller tables but mid-run for LandWeb
is see the old algo is faster
—
Reply to this email directly, view it on GitHub
<#39 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIMVW43OK5V22VK4DMZWBLWE4GMXANCNFSM4NIVBFIA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I noticed that for a table with 1340184 rows, turning assertions off in
vegTypeMapGenerator
, makes the function use algo == 2 :However, I ran the function a few times with assertions on to compare timings of the two algos and no. 2 (the 'new algo') was at least 5xs slower than no. 1 (the 'old algo'). So table size doesn't seem to be a good predictor...
This is a minor issue, but I wanted to raise it here because I feel we're not ready to decide on which algorithm to use and if we keep the mechanism of "let the function decide" we'll need a better predictor.
The text was updated successfully, but these errors were encountered: