Thomas J. Fan
@thomasjpfan
This talk on Github: thomasjpfan/data-umbrella-2021-reviewing-prst
: Activate the file finderl
: Jump to a line in your codeb
: Open blame viewgh pr checkout 20165
This would cause a performance regression. We can cache the results and use it again for sequential calls. What do you think?
Never do this. It is very slow.
This leads to a memory regression. May we try using batched calls to reduce the memory overhead? Something like this:
Insert code snippet
This leads to a memory regression.
We have similar logic in multiple places in this PR. Can we refactor this into its own function to be more DRY?
Please refactor this into its own function.
We can improve this function by adding more input validation and tests on the following edge cases:
List edge cases
This whole function is stupid.
I checked the reference and it uses the following equation:
Insert Equation
I do not think this matches our implementation. What do you think?
I have 20 years of experience and this is clearly wrong.
This is part of the code is unclear. What was your reasoning behind using a queue here?
This is confusing.
This is a very clever usage of defaultdict
!
Thank you for the PR @thomasjpfan!
{
"editor.formatOnSave": false,
}
Some PRs must be large because they require major design changes
There could be helper functions already implemented
It may directly contradict planned future work
Test the different options or input types of a function