Replies: 5 comments 74 replies
-
Sorry, I don't fully understand the details of what you need to achieve vs what the code is doing at the moment. It sounds like the edge case you need to handle can be captured with the help of negation, along the lines of
There are more efficient ways to experss this, but this would be the idea. Can you formulate the rule that you'd like to write (or how you'd like to alter the behavior of an existing rule), and I'll try to propose a solution? |
Beta Was this translation helpful? Give feedback.
-
The first comment seems correct, with the addition that if |
Beta Was this translation helpful? Give feedback.
-
Here's another method that I was trying to suggest from the start:
|
Beta Was this translation helpful? Give feedback.
-
I've been reading a Systematic Approach to Deriving Incremental Type Checkers and it mentions some things about improving performance within chapter 4, but I'm not really sure how to extrapolate their very specific examples into ddlog with my codebase or even how to understand a lot of it |
Beta Was this translation helpful? Give feedback.
-
So, I've investigated further and after finding out that linting a single file of what's still a hefty length, my ddlog code is absurdly fast. I applied the id fusion optimization that combines things like |
Beta Was this translation helpful? Give feedback.
-
This is a follow-up on the Gitter discussion for optimizing rslint's
NoShadow
relationI attempted this, but I run into the edge case of the top-level scope and I'm not entirely sure what to do. The clause I attempted was this
After thinking about this significantly more, I don't think the rule as a whole is correct, since
FunctionLevelScope
is automatically applied to everything that needs hoisting. However, the remaining three rules miss some test cases and I'm not sure how to go about fixing themThese three rules (that all need optimization themselves to eliminate the
ScopeFamily
lookups) miss the following test casesThe code is all located here
Beta Was this translation helpful? Give feedback.
All reactions