-
Notifications
You must be signed in to change notification settings - Fork 0
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
Benchmark #16
Comments
to_int() adds about 20 microseconds for a length-1-million integer. SAME for length-10-million, which is good. Adding microseconds feels tolerable. When coercion is necessary, it adds microseconds even for to_int(), but to be fair it's actually DOING something. It's almost identical to as.integer. For these simple cases, ykwim is faster than checkmate! |
I will have to add this to the readme or an article or something eventually.... |
Do this as an article. Compare to {stbl} will be slower than some of them, but it shouldn't be slower than what it takes to turn that thing into {stbl}, basically. |
I'm not sure whether this should be a vignette or just something in tests, but somewhere I should compare code with my checks to code without the checks, and to checks using checkmate and maybe things like vec_cast.
The text was updated successfully, but these errors were encountered: