-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
[Question] frequency of _reparseObj seems like it could be excessive #15
Comments
Thank you for submitting an issue! If this is a bug report, please be sure to include, at minimum, example code that will reproduce the issue. Even better, you can link to a saved online code editor example, where anyone can immediately run the code and see the issue. If you are requesting a feature, it is better to discuss it in the Discussions area first. If you need to edit your issue description, click the [...] and choose Edit. Be patient. This is a free and freely licensed package that we maintain in our spare time. You may get a response in a day, but it could also take a month. If you benefit from this package and would like to see more time devoted to it, you can help by sponsoring. |
@znewsham It has been a very long time since I wrote this code, but my gut says there are cases when it is necessary. For example, what if the updated value is itself an object or array? But might it be possible to isolate the exact circumstances that require a reparsing and be smarter about when it's done, yes. The problem with this code is that it's very finicky and hard to understand the implications of any change. Overall though, my opinion is that if you change something and (1) all tests continue to pass and (2) all tests in the So in other words, if someone wants to try this in a PR and prove that it doesn't break any tests, it should be okay to merge. |
Awesome - I'll have a crack at this - compared to the version in use by legacy meteor projects, this is already more efficient because it selectively runs the |
Not a bug, but a question - there are a bunch of places where
setValueForPosition
is called, including in a loop at the end of theforEachNode
function. In the situation that asetValueForPosition
necessitates calling_reParseObj
- does this have to happen before the (immediately) next call tosetValueForPosition
executes? E.g., inforEachNode
Could the
_reParseObj
call be made after all thesesetValueForPosition
are complete?The text was updated successfully, but these errors were encountered: