[
https://issues.apache.org/jira/browse/ARROW-1630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16201252#comment-16201252
]
ASF GitHub Bot commented on ARROW-1630:
---------------------------------------
Github user pcmoritz commented on the issue:
https://github.com/apache/arrow/pull/1153
Timings:
```
import pyarrow
import datetime
dates = [datetime.datetime(year=1900 + i % 50, month=3, day=1, hour=i%24,
second=i%60) for i in range(10000)]
%timeit x = pickle.dumps(dates)
9.8 ms ± 65.9 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
%timeit y = pickle.loads(x)
2.31 ms ± 54.9 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
%timeit x = pyarrow.serialize(dates).to_buffer()
14.4 ms ± 774 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
%timeit pyarrow.deserialize(x)
14.2 ms ± 89.1 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
```
So performance wise there is still some room for improvement.
> [Serialization] Support Python datetime objects
> -----------------------------------------------
>
> Key: ARROW-1630
> URL: https://issues.apache.org/jira/browse/ARROW-1630
> Project: Apache Arrow
> Issue Type: Improvement
> Reporter: Philipp Moritz
> Assignee: Philipp Moritz
> Labels: pull-request-available
> Fix For: 0.8.0
>
>
> This was brought up in https://github.com/ray-project/ray/issues/1041
> It is related but not the same as
> https://issues.apache.org/jira/projects/ARROW/issues/ARROW-1628
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)