Comments (2)
Yeah, this is a bit unfortunate. I believe the main issue is with compiling in debug mode. In particular, lalr
is really slow without optimizations, so processing the grammar takes a long time. If you compile in release mode, you'll probably notice that part get faster... but then your own project will also be compiled in release mode, so it takes longer too. Using something like rust-lang/rust#48683 might work, though.
from plex.
Maybe this would help:
[profile.dev.package."*"]
opt-level = 3
Not sure, can't test, just remembered the plex issue when i learned about this.
Anyway, i think this issue should be pinned so people know what to expect - IMO plex is just not ready for production - any reasonable sized grammar will take way too long to compile and this is impossible to figure out before getting to that stage so i don't want more people to fall into the same trap. I put some warning signs on the issue name so it's easier to notice for now ;)
I really like the lib, it has the cleanest syntax of all i could find, there's just no way to be productive given the compile times.
from plex.
Related Issues (20)
- Allow backtracking for function calls without parentheses HOT 1
- Optional new Program in Parser HOT 1
- Multiple entry points
- Nightly build broken by proc_macro feature rename HOT 1
- Attribute needed to use the emit function HOT 3
- supporting error recovery?
- The crates.io version seems out of date HOT 2
- Example lexer can be simplified HOT 1
- No way to pass additional args to the lexer HOT 1
- Documentation leads to 404 error
- Token lifetime in parser
- Naming regex patterns? HOT 1
- Update to syn 1.0 HOT 1
- Warnings caused by plex macros HOT 4
- Support of start conditions
- [HELP] Function argument parser HOT 1
- Anyway to have a priority? HOT 3
- Any way to build for stable channel?
- warning: function 'reduce_11' is never used HOT 2
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 plex.