-
Couldn't load subscription status.
- Fork 1.4k
Optimize Promise #9569
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
Optimize Promise #9569
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
42d566e
Optimize Promise
hearnadam a95ae72
missing import
hearnadam 9972107
Merge branch 'series/2.x' into optimize-promise-pr
hearnadam a2b54e9
fix merge/address feedback
hearnadam 6859183
Invoke waiters in order
hearnadam 4dc3766
format
hearnadam 0842795
fix version
hearnadam f3f7a94
fix PromiseSpec on 212
hearnadam 78f1631
fix PromiseBenchmarks on 212
hearnadam e56d509
fix jvmopts
hearnadam f62ab66
optimize Single/Zero waiter
hearnadam 201d774
mima
hearnadam 1f98962
format
hearnadam 511d573
attempt to improve test
hearnadam e028bef
Merge branch 'series/2.x' into optimize-promise-pr
hearnadam ee30a74
update test
hearnadam 349202d
fix: complete
hearnadam 071bfbb
PromiseBench: 16 -> 8 waiters
hearnadam fad1bf8
bring back linked list
hearnadam aa48507
formatting
hearnadam 9265c1b
remove unused imports
hearnadam a4fe187
Use Unsafe directly
hearnadam e6cdde3
fix scala3
hearnadam 7e2dc3d
Merge branch 'series/2.x' into optimize-promise-pr
hearnadam b3d30fd
Merge branch 'series/2.x' into optimize-promise-pr
hearnadam 4689adf
fix formatting settings.json
hearnadam 63bfeb9
update benches
hearnadam 4f05b1e
Revert "fix formatting settings.json"
hearnadam e70a5a3
fix scala 3 formatting
hearnadam a34e5d8
updates
hearnadam c854562
fmt
hearnadam 73dc413
cleanup
hearnadam 4ddbb30
protected size
hearnadam 7eb086e
Revert "protected size"
hearnadam 870076c
Merge branch 'series/2.x' into optimize-promise-pr
hearnadam c818f4c
fix merge
hearnadam 9b906aa
fix merge
hearnadam 613b7c0
Merge branch 'series/2.x' into optimize-promise-pr
kyri-petrou 207bd27
address in person review
hearnadam dd855c3
format
hearnadam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,5 +7,5 @@ | |
| ], | ||
| "files.watcherExclude": { | ||
| "**/target": true | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,9 +39,12 @@ object BenchmarkUtil extends Runtime[Any] { self => | |
| Unsafe.unsafe(implicit unsafe => rt.unsafe.run(zio).getOrThrowFiberFailure()) | ||
| } | ||
|
|
||
| override val unsafe = super.unsafe | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I noticed some benchmarks allocate new unsafe apis. |
||
|
|
||
| private object NoFiberRootsRuntime extends Runtime[Any] { | ||
| val environment = Runtime.default.environment | ||
| val fiberRefs = Runtime.default.fiberRefs | ||
| val runtimeFlags = RuntimeFlags(RuntimeFlag.CooperativeYielding, RuntimeFlag.Interruption) | ||
| override val unsafe = super.unsafe | ||
| val environment = Runtime.default.environment | ||
| val fiberRefs = Runtime.default.fiberRefs | ||
| val runtimeFlags = RuntimeFlags(RuntimeFlag.CooperativeYielding, RuntimeFlag.Interruption) | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.