Complex if() freezes analysis
See original GitHub issueTrying to analyze the following, rather complex, if()
statement will freeze analysis. No error or anything, just hanging there until manually killed.
component {
function foo() {
if (keys[i] == sectionActionsName && !loadSectionFreeSkills && !loadSectionActions && !loadSectionActionsContact && !loadSectionActionsHistory && !loadSectionComment
|| keys[i] == sectionProfileName && !loadSectionProfile
|| keys[i] == sectionLanguagesName && !loadSectionLanguages
|| keys[i] == sectionExperienceWidgetName && !loadSectionProfile && !loadSectionExperience
|| keys[i] == sectionProfileName && !loadSectionProfile
|| keys[i] == sectionExperienceName && !loadSectionExperience
|| keys[i] == sectionSkillsName && !loadSectionSkills
|| keys[i] == sectionFreeSkillsName && !loadSectionFreeSkills
|| keys[i] == sectionFunctionsName && !loadSectionFunctions
|| keys[i] == sectionEducationName && !loadSectionEducation
|| keys[i] == sectionAttachmentName && !loadSectionAttachment
) {
// do something
}
}
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Find the Cause of a UI Freeze | dotTrace Documentation
For example, all controls from the Analysis Subject filter were moved under ... The algorithm of fixing UI freezes shown in this tutorial ......
Read more >Code Freeze in Software Engineering - GeeksforGeeks
Code Freeze is one type of freeze among the three types of freeze i.e. specification freeze, feature freeze and code freeze.
Read more >13.8: Freezing-Point Depression and Boiling-Point Elevation ...
A solution of 4.00 g of a nonelectrolyte dissolved in 55.0 g of benzene is found to freeze at 2.32 °C. What is...
Read more >How to freeze nested objects in javascript? - Stack Overflow
freeze() function. It seems to be a pretty good feature but how to make whole object (including nested objects) immutable? For example I...
Read more >Nested for-loop freezing Unity - Unity Answers
If it still feels stuck, then your design has a performance flaw. Either make the loops smaller, or do them only once in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
that’s terrible code, as a human i freeze reading it.
This is fixed in cfparser 2.4.6 (coming to maven soon)