Skip to content

Conversation

kpamnany
Copy link
Collaborator

@kpamnany kpamnany commented Mar 13, 2025

PR Description

rand() locks and is slow. This uses the seed from ptls.

Checklist

Requirements for merging:

`rand()` locks and is slow. This uses the seed from `ptls`.
Also remove a warning from array.c
Copy link
Member

@nickrobinson251 nickrobinson251 left a comment

Choose a reason for hiding this comment

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

Can you post before/after numbers (and/or profile comparison) for taking an allocs profile?

like before we saw:
image
and idk what the % overhead was

char *data = (char*)a->data;
char *newdata;
char *typetagdata;
char *typetagdata = NULL;
Copy link
Member

Choose a reason for hiding this comment

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

how is this change related?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is completely unrelated -- just fixes a warning while building Julia. I can drop it from this PR...?

@nickrobinson251
Copy link
Member

Are we okay to merge this? I don't really think either of my comments need to stop us

@kpamnany
Copy link
Collaborator Author

Yes, this is merged upstream.

@kpamnany
Copy link
Collaborator Author

But it would be good to verify that it does help, as your comment suggests.

@kpamnany kpamnany merged commit 52dcbad into v1.10.2+RAI Mar 27, 2025
1 check passed
@kpamnany kpamnany deleted the kp-backport-57761 branch March 27, 2025 18:26
@NHDaly
Copy link
Member

NHDaly commented Mar 27, 2025

Evidence of impact: JuliaLang#57761 (comment)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants