-
Notifications
You must be signed in to change notification settings - Fork 207
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
Efficient instant creation functions #365
Comments
|
How about renaming them into Even better, we can use |
Sorry, the key was "efficient" - |
That's pretty efficient. Any other operation with dates will likely be much more time consuming. We can think of implementing it from scratch but I would like to see a use case when the current situation would be a bottleneck and the speed improvements would actually matter. (somewhat related #324) |
I'd say ISODateTime is at least 100x slower than it could be. It's definitely a problem when you're working with data frame with millions of row. We could do this much more efficiently in C. |
Oh. You are right. I was confused. I though that ISOdate and ISOdatetime are our functions and they are based on our C parser. Indeed, they are very slow and I actually replaced myself all occurrences of ISOdatetime in our code a year or so ago. We already can get 100x speedup with our fast_strptime function. |
Yeah, and it should be even faster if we don't paste and parse and instead create the time object in C directly. |
Hm. I have added |
I have ported |
Nice! |
i.e. if I have year, month, and day, how do I efficiently create a date (or date time)?
The text was updated successfully, but these errors were encountered: