Skip to content

Conversation

hawkinsp
Copy link
Collaborator

Wide concatenations can be slow to compile, particularly on the CPU backend. As a workaround particularly for op-by-op mode, form a tree of narrower concatenations.

Fixes #653

Benchmark:
%time np.array(list(range(10000)))
Wall time before: 24.6s
Wall time after: 0.86s.

(This still isn't great, but it's much better!)

…ingle wide concatenation.

Wide concatenations can be slow to compile, particularly on the CPU backend.

Benchmark:
%time np.array(list(range(10000)))
Wall time before: 24.6s
Wall time after: 0.86s.

(This still isn't great, but it's much better!)
@hawkinsp hawkinsp requested a review from mattjj June 25, 2019 14:01
Copy link
Collaborator

@mattjj mattjj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, slick implementation.

@fehiepsi
Copy link
Contributor

This is much much better! Thanks @hawkinsp for fixing this bug!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Excessively long initialization time of plain old list integers

4 participants