Skip to content

Conversation

@CPunisher
Copy link
Contributor

@CPunisher CPunisher commented Jun 14, 2025

closes swc-project/swc#10453

I learnt that the basic idea of par_core is passing &mut Scope down by thread local variables. I think the original code is verbose and causes some bugs like swc-project/swc#10453. So here I provide a simpler and more intuitive implementation.

Before:
image

After:
image

Help me test if there's any bug (like panic) or performance regression.

This is a breaking change since I remove some public api (although I think they should not be public at all).

@CLAassistant
Copy link

CLAassistant commented Jun 14, 2025

CLA assistant check
All committers have signed the CLA.

@kdy1 kdy1 self-assigned this Jun 18, 2025
Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

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

Thank you! Let's try...

@kdy1 kdy1 enabled auto-merge (squash) June 18, 2025 20:48
@kdy1 kdy1 merged commit be0fe31 into dudykr:main Jun 18, 2025
10 checks passed
kdy1 added a commit to swc-project/swc that referenced this pull request Jun 19, 2025
**Description:**

This PR is a breaking change of `swc_ecma_utils` because users of the
crate need to update their `Cargo.toml` like

from

```toml
par-core = { version = "1", features = ["chili"] }
```

to

```toml
par-core = { version = "2", features = ["chili"] }
```



**Related issue:**

 - dudykr/ddbase#87
 - Closes #10453
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

High Idle CPU Usage

3 participants