Repository navigation
Conversation
benvanik
force-pushed
the
benvanik-regs
branch
5 times, most recently
from
June 5, 2020 06:12
4aac3a5 to
60ef8c5
Compare
benvanik
marked this pull request as ready for review
June 5, 2020 06:24
ScottTodd
approved these changes
Jun 8, 2020
Contributor
|
I'm restructuring some parts of the CI, and all open PRs behind this commit will be affected. This only affects PRs that are seven days old or older. Expect presubmit failures for |
benvanik
force-pushed
the
benvanik-regs
branch
4 times, most recently
from
June 16, 2020 00:16
4bdb603 to
37c7b9b
Compare
benvanik
force-pushed
the
benvanik-regs
branch
3 times, most recently
from
June 16, 2020 02:45
a2df4e5 to
8419564
Compare
Reduces the default stack to be small enough to fit on the host stack and dynamically growable if needed. This dramatically reduces our memory footprint and speeds up almost everything VM-related (invocation from C to bytecode, bytecode to C, and bytecode to bytecode). It also has the effect of properly guarding register array accesses via valid bit masks that expensive logic in the actual bytecode op implementations. Latest VM bytecode benchmark numbers for desktop: ----------------------------------------------------------------------- Benchmark Time CPU Iterations ----------------------------------------------------------------------- BM_ModuleCreate 176 ns 176 ns 3733333 BM_ModuleCreateState 72.4 ns 71.5 ns 8960000 BM_FullModuleInit 236 ns 235 ns 2986667 BM_EmptyFuncReference 2.57 ns 2.55 ns 263529412 BM_EmptyFuncBytecode 76.4 ns 76.7 ns 11200000 BM_CallInternalFuncReference 2.27 ns 2.29 ns 320000000 BM_CallInternalFuncBytecode 22.4 ns 22.5 ns 29866680 BM_CallImportedFuncBytecode 20.7 ns 20.5 ns 32000000 BM_LoopSumReference/100000 1.17 ns 1.17 ns 640000000 BM_LoopSumBytecode/1000000 7.73 ns 7.64 ns 90000000
This should be reverted with #2075.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Reduces the default stack to be small enough to fit on the host stack and
dynamically growable if needed. This dramatically reduces our memory
footprint and speeds up almost everything VM-related (invocation from C
to bytecode, bytecode to C, and bytecode to bytecode). It also has the
effect of properly guarding register array accesses via valid bit masks
that avoids expensive logic in the actual bytecode op implementations.
Fixes #1172.
Before/after (of just one function type):
