Skip to content
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

lib: use primordial for noop #38802

Closed
wants to merge 1 commit into from
Closed

Conversation

VoltrexKeyva
Copy link
Member

Most of the internal modules use the FunctionPrototype primordial for no-op functions, we could use them here for consistency.

Most of the internal modules use the `FunctionPrototype` primordial for no-op functions, we could use them here for consistency.
@github-actions github-actions bot added the needs-ci PRs that need a full CI run. label May 24, 2021
Copy link
Contributor

@aduh95 aduh95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on #38246 (comment), I think we should refrain from doing this. It doesn't change the code behaviour, avoiding re-declaring empty functions may save a few bytes from memory but if it's introducing perf regressions, the trade-off is not worth it IMHO.

@VoltrexKeyva
Copy link
Member Author

Based on #38246 (comment), I think we should refrain from doing this. It doesn't change the code behaviour, avoiding re-declaring empty functions may save a few bytes from memory but if it's introducing perf regressions, the trade-off is not worth it.

Oh I see, yea I think this is probably not worth it; closing.

@VoltrexKeyva VoltrexKeyva deleted the patch-2 branch May 25, 2021 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants