Skip to content

Conversation

@mandolaerik
Copy link
Contributor

  • remove unused method
  • Use counting sort to sort in linear instead of quadratic time

@mandolaerik
Copy link
Contributor Author

This is a simpler alternative to #239: almost as fast (4ns instead of 2ns per field for getting the sorted fields), and no memory footprint. Thanks to Love for suggesting this approach.

@syssimics
Copy link
Contributor

Verification #12567253: fail

@syssimics
Copy link
Contributor

Verification #12570225: pass

Copy link
Contributor

@lwaern-intel lwaern-intel left a comment

Choose a reason for hiding this comment

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

see my comments for my follies. Microoptimization is hard, who knew.

@mandolaerik mandolaerik force-pushed the pr/use-counting-sort-to-sort-in-linear-instead-of-quadratic-time branch from 2e72a47 to c70aa88 Compare November 29, 2023 13:31
@syssimics
Copy link
Contributor

Verification #12592898: pass

@mandolaerik mandolaerik merged commit 3419a85 into intel:main Nov 29, 2023
@mandolaerik mandolaerik deleted the pr/use-counting-sort-to-sort-in-linear-instead-of-quadratic-time branch November 29, 2023 15:25
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