Constant-propagate fields in hash_fields#87
Open
jishnub wants to merge 2 commits intobeacon-biosignals:mainfrom
Open
Constant-propagate fields in hash_fields#87jishnub wants to merge 2 commits intobeacon-biosignals:mainfrom
hash_fields#87jishnub wants to merge 2 commits intobeacon-biosignals:mainfrom
Conversation
Member
|
First of all. SO sorry for the delayed reply. I am crawling out from under a huge pile of github notifications, and recovering from a very long winter with many deadlines and sick children, and I JUST saw your post from November 😬 Thank you for all of your PR contributions to this repository. It is goint to take me some time to look over them and understand, and I'm not exactly out of the woods with some pending deadlines, so it may take me some time, but I just wanted to let you know that I have finally noticed that you posted these PRs ages ago, and that I am no looking into them. |
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.
Description
This PR improves type stability of the field accesses within
hash_fields.Descending into
hash_fieldsusing CthulhuConstant propagation ensures that the types of the values are known, and using
mapapplies the function recursively, where the value offieldis constant-propagated within the inner function. This ensures that the innerfieldtypecall is also type-inferred.Benchmarks
Before
After