Skip to content

CLN: factorize returns ndarray[intp], not int64 #40474

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

Merged
merged 8 commits into from
Mar 20, 2021

Conversation

jbrockmendel
Copy link
Member

No description provided.

@jreback
Copy link
Contributor

jreback commented Mar 17, 2021

any perf changes? are the XML changes orthogonal? (not objecting)

@jreback jreback added this to the 1.3 milestone Mar 17, 2021
@jreback jreback added Algos Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff 32bit 32-bit systems labels Mar 17, 2021
@jbrockmendel
Copy link
Member Author

any perf changes?

same as the other PRs: should be neglible on 64bit, mixed on 32bit until we are internally consistent

are the XML changes orthogonal? (not objecting)

i didnt do those, no idea how they got into the diff

@jbrockmendel
Copy link
Member Author

looks like the XML edits are already present in master, but just rebased, so hopefully they'll dissappear from the diff

@jreback
Copy link
Contributor

jreback commented Mar 17, 2021

i guess general question then

i agree aligning in intp is good mainly because we need to convert when we do a take
but shouldn't we see perf gains (from not constantly converting)?

@jbrockmendel
Copy link
Member Author

but shouldn't we see perf gains (from not constantly converting)?

on 64bit systems intp and int64 are the same and ensure_platform_int doesnt make a copy if it doesnt have to (and is in cython, so is cheap). on 32bit yes, we are going back-and-forth in some places but ATM it is too scattered to really track down (even if i had the hardware on hand)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
32bit 32-bit systems Algos Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants