You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think this is a performance improvement, you not running 2 loops but you creating a new array, push to it and then looping it, not sure how this will affect the performance, I'd recommend benchmarking to prove there's actually performance benefits here.
I don't think this is a performance improvement, you not running 2 loops but you creating a new array, push to it and then looping it, not sure how this will affect the performance, I'd recommend benchmarking to prove there's actually performance benefits here.我不认为这是性能改进,您没有运行 2 个循环,而是创建一个新数组,推送到它然后循环它,不确定这将如何影响性能,我建议进行基准测试以证明这里确实有性能优势。
Its execution will definitely be faster than before, because the previous logic is to traverse the entire data again, and each time it has to judge effect.computed, and an array is added so that the data that has been filtered in the first loop can be directly Loop execution, the amount of data you have the second time will be less, and no conditional judgment is needed anymore.
The title for this PR seems to be off. It doesn't seem to be related to compiler-sfc or defineOptions. It looks like you've copied the commit message from #9453.
The title for this PR seems to be off. [The title for this PR seems to be off.] It doesn't seem to be related to compiler-sfc or defineOptions. [It doesn't seem to be related to compiler-sfc or defineOptions.] It looks like you've copied the commit message from #9453 [#9453] . [It looks like you've copied the commit message from #9453.] 此 PR 的标题似乎已关闭。 [此 PR 的标题似乎已关闭。它似乎与 compiler-sfc 或 defineOptions 无关。[它似乎与编译器-sfc或defineOptions无关。看起来您已经从 #9453 [#9453] 复制了提交消息。[看起来您已经从 #9453 复制了提交消息。
Do you have any better suggestions? Because compared to the previous logic, it does skip the second loop of the entire effects elements that need to be judged not to be effect.computed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.