Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

opt: sig anyval#4614

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
coreyoconnor wants to merge3 commits intoscala-native:main
base:main
Choose a base branch
Loading
fromcoreyoconnor:opt-sig-anyval

Conversation

@coreyoconnor
Copy link
Contributor

Adopted from comment and PR

UsingVM version: JDK 21.0.8, OpenJDK 64-Bit Server VM, 21.0.8+9-nixos

Based purely on the JMH bench results this does not have a measurable impact. Leaving as draft to answer conversation.

tools-benchmark/jmh:run -i 20 scala.scalanative.benchmarks.LinkerBench

Prior

[info] Result "scala.scalanative.benchmarks.LinkerBench.link":[info]   1126.626 ±(99.9%) 55.782 ms/op [Average][info]   (min, avg, max) = (1068.876, 1126.626, 1376.822), stdev = 64.238[info]   CI (99.9%): [1070.844, 1182.408] (assumes normal distribution)[info] # Run complete. Total time: 00:01:03[info] Result "scala.scalanative.benchmarks.LinkerBench.link":[info]   1126.626 ±(99.9%) 55.782 ms/op [Average][info]   (min, avg, max) = (1068.876, 1126.626, 1376.822), stdev = 64.238[info]   CI (99.9%): [1070.844, 1182.408] (assumes normal distribution)[info] # Run complete. Total time: 00:01:03

Post

[info] Result "scala.scalanative.benchmarks.LinkerBench.link":[info]   1166.456 ±(99.9%) 142.858 ms/op [Average][info]   (min, avg, max) = (1049.574, 1166.456, 1521.616), stdev = 164.516[info]   CI (99.9%): [1023.598, 1309.314] (assumes normal distribution)[info] # Run complete. Total time: 00:01:03
[info] Result "scala.scalanative.benchmarks.LinkerBench.link":[info]   1113.939 ±(99.9%) 107.734 ms/op [Average][info]   (min, avg, max) = (1026.294, 1113.939, 1468.061), stdev = 124.066[info]   CI (99.9%): [1006.206, 1221.673] (assumes normal distribution)[info] # Run complete. Total time: 00:01:00

He-Pin reacted with thumbs up emoji
@LeeTibbert
Copy link
Contributor

LeeTibbert commentedNov 1, 2025
edited
Loading

coreyoconnor.

Could you take a moment to explain to a interested reader who is not a subject expert a few things?
I appreciate 3 minutes of your time. Thank you.

It appear that you are trying to speed up the SN link phase by implementing a suggestion by Densh.
Such a speed up would certainly be a good thing. It certainly would save me time for I use that
phase many times a day.

These are probably perfectly obvious to you.

  1. Exactly what is being measured?

  2. The answer is probably in the supplied "scala.scalanative.benchmarks.LinkerBench",
    but that is not a link and I tracking it down would take more time than available.

  3. What is the direction of goodness? Are larger numbers better?

From what I see, the bottom set has a greater dispersion and a mean that is
greater in one case and less in another. Hard to see a win either direction
of goodness.

@WojciechMazur
Copy link
Contributor

Definitely makes sense but also breaks binary compatibility. Would need to wait for the next minor release.

@coreyoconnor
Copy link
ContributorAuthor

I'm attempting to gather more info on allocations and actual profiling info.

Unfortunately my computer hard locks when i try to profile anything! Not what i wanted to spend my time on haha.

Anyways, I'll be updating this with further analysis once my computer can handle it.

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

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@coreyoconnor@LeeTibbert@WojciechMazur

[8]ページ先頭

©2009-2025 Movatter.jp