Comments (2)
Some perf try:
Running match in worker:
./target/release/sg -p '$P && $P()' -r '$P?.()' ../TypeScript/src 1.89s user 0.08s system 489% cpu 0.403 total
./target/release/sg -p '$P && $P()' -r '$P?.()' ../TypeScript/ 38.84s user 2.14s system 652% cpu 6.276 total
Running match in main:
./target/release/sg -p '$P && $P()' -r '$P?.()' ../TypeScript/src 1.90s user 0.08s system 501% cpu 0.395 total
./target/release/sg -p '$P && $P()' -r '$P?.()' ../TypeScript/ 39.44s user 2.61s system 671% cpu 6.265 total
from ast-grep.
However, running scan in worker will be much faster than in main thread.
sg scan
in TypeScript will only utilize about 170% of CPU.
from ast-grep.
Related Issues (20)
- export meta variables defined in transform
- export meta variables defined in constraints/rules
- define the resolution order of meta variables
- export used meta-var in transform
- report undefined meta-var in fix
- Allow to use meta variable captured outside of rewrite rule inside the rewriter HOT 2
- export meta var in constraints HOT 1
- [bug] Discrepencies in results between JavaScript and TypeScript HOT 4
- [feature] bump tree-sitter-rust issue
- Implement prepend/append
- report undefined util rules
- [bug] cargo install --path ./crates/cli failed HOT 4
- [feature] Add Haskell support
- [bug] `ast-grep` prebuilt binaries are missing from release HOT 2
- [feature] Ability to know if variable is declared HOT 3
- [bug] ast-grep at v. 0.21.x doesn't work on MacOS Intel machines HOT 6
- [feature] debugger REPL? HOT 9
- Is there any way to configure custom language support when using the Python API? HOT 1
- [feature] Language request: Jsonnet
- [feature] Command line flag to output rewrites only HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ast-grep.