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.
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
perf: resolve fingerprints using method maps #185
perf: resolve fingerprints using method maps #185
Changes from 19 commits
5a0e0e2
a8a7f79
b82fe11
91a6a83
78b596a
4441be9
afeb772
3d579b9
b117163
7a161c5
a1490f0
57a966b
9e54b3a
5f37968
165f2ec
7ba6c08
08ebd1e
05496c9
dac8e88
5b988b1
8c9b90e
034e944
fbe7099
e253694
af94f9c
66de76b
7d71ad0
cd5c2ab
d59fb2a
1d771d9
0dee824
4c25390
168f399
84b6bcb
208b63a
1f41ee4
3ae9d26
0f028ee
ae1b437
59dbab8
93ccd6c
052bbf2
e0bd1b1
3c8279f
d689fdb
be13723
5edf781
3658fbc
ec7857a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this true? Are all parameters required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This compound is designed arbitrarily. Why 5 maximum parameters? Why the random "p:" prefix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 'p' prefix is needed to distinguish methods that have no parameters. If it did not have "p", the signature would be the same as the key for just access + return (which is not correct).
The 5 parameter limit was chosen after trying different values and seeing what difference it had on performance. Less than 5 it started to get slower, and over 5 made no difference.
Using no limit on the number of parameters worked ok, but the signature map was getting a lot of junk added to it (some methods in YouTube have over 100 parameters!). So instead, all methods with over 5 parameters get binned together with all other 5+ parameter methods with the same return/access type.
I'll add some code comments explaining this.