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

refactor: remove imported ops from Deno.core.ops #22194

Merged
merged 11 commits into from
Jan 31, 2024

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Jan 30, 2024

This commit adds a list of ops to runtime/99_main.js that are currently
relying on getting them from Deno.core.ops. All ops that are not present
in the list are removed from Deno.core.ops on startup (they are imported
from "virtual op module" - ext:core/ops) making them effectively
inaccessible to user code.

This change lowers the number of ops exposed to user code from 650 to
around 260. This number should be gradually decreased in follow-up PRs.

@bartlomieju bartlomieju added the ci-bench put this on a PR to run the benchmarks label Jan 30, 2024
@bartlomieju bartlomieju merged commit 13a91a6 into denoland:main Jan 31, 2024
15 checks passed
@bartlomieju bartlomieju deleted the remove_imported_ops branch January 31, 2024 21:40
littledivy pushed a commit that referenced this pull request Feb 1, 2024
This commit adds a list of ops to `runtime/99_main.js` that are
currently relying on getting them from `Deno.core.ops`. All ops that are not
present in the list are removed from `Deno.core.ops` on startup (they are
imported from "virtual op module" - `ext:core/ops`) making them effectively
inaccessible to user code.

This change lowers the number of ops exposed to user code from 650 to
around 260. This number should be gradually decreased in follow-up PRs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-bench put this on a PR to run the benchmarks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants