8000 Delete some obsolete cruft by tgoyne · Pull Request #5662 · realm/realm-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Delete some obsolete cruft #5662

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 2 commits into from
Mar 22, 2023
Merged

Delete some obsolete cruft #5662

merged 2 commits into from
Mar 22, 2023

Conversation

tgoyne
Copy link
Member
@tgoyne tgoyne commented Jul 14, 2022

The SSE/AVX code was written in 2012 and mostly hasn't been touched since then. In the time since then, runtime checking for SSE4.2 support has become pointless (CPUs supporting it were first released in 2008, so it was somewhat recent in 2012 and now is not at all recent), and we never actually wrote anything which requires AVX. There was also some SSE code which has been disabled since 2012.

set_string_compare_method() and everything related to it has never actually been used by any SDK, and is not really the correct solution to the problem anyway.

The encryption code used ssize_t in a few places because it was originally written to use pread and friends, but the functions it now calls use size_t and ssize_t doesn't exist on Windows. The use of ssize_t in the Windows networking code was simply incorrect; the winsock functions return int.

@tgoyne tgoyne self-assigned this Jul 14, 2022
@cla-bot cla-bot bot added the cla: yes label Jul 14, 2022
@bmunkholm bmunkholm requested a review from jedelbo February 27, 2023 15:33
Copy link
Contributor
@jedelbo jedelbo left a comment

Choose a reason for hiding this comment

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

Should be rebased

The SSE/AVX code was written in 2012 and mostly hasn't been touched since then.
In the time since then, runtime checking for SSE4.2 support has become
pointless (CPUs supporting it were first released in 2008, so it was somewhat
recent in 2012 and now is not at all recent), and we never actually wrote
anything which requires AVX. There was also some SSE code which has been
disabled since 2012.

set_string_compare_method() and everyhing related to it has never actually been
used by any SDK, and is not really the correct solution to the problem anyway.

The encryption code used `ssize_t` in a few places because it was originally
written to use `pread` and friends, but the functions it now calls use `size_t`
and `ssize_t` doesn't exist on Windows. The use of ssize_t in the Windows
networking code was simply incorrect; the winsock functions return `int`.
@tgoyne tgoyne force-pushed the tg/delete-cruft branch from 2675616 to 13b65ef Compare March 9, 2023 17:28
@ironage ironage mentioned this pull request Mar 22, 2023
3 tasks
Copy link
Contributor
@jedelbo jedelbo left a comment

Choose a reason for hiding this comment

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

LGTM

@jedelbo jedelbo merged commit cbe560a into master Mar 22, 2023
@jedelbo jedelbo deleted the tg/delete-cruft branch March 22, 2023 14:55
michael-wb pushed a commit that referenced this pull request Mar 22, 2023
@michael-wb michael-wb restored the tg/delete-cruft branch March 22, 2023 20:15
@michael-wb
Copy link
Contributor

Restoring branch since it seems #6406 may rely on some of these changes.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0