Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upEfficient 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)?