Bug 512605 - Avoid trying to constantly read, parse and map files with no contents
Summary: Avoid trying to constantly read, parse and map files with no contents
Status: RESOLVED FIXED
Alias: None
Product: Orion (Archived)
Classification: ECD
Component: JS Tools (show other bugs)
Version: 13.0   Edit
Hardware: PC Mac OS X
: P2 normal (vote)
Target Milestone: 14.0   Edit
Assignee: Michael Rennie CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2017-02-23 00:58 EST by Michael Rennie CLA
Modified: 2017-02-23 01:04 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rennie CLA 2017-02-23 00:58:53 EST
One of our utility functions in javaScript project (readAndMap) is called for a file even if no contents were loaded for it, and it tries to parse multiple times if it fails once.

We should avoid all the extra work and only parse files based on their kind (json vs. yaml/yml vs. JS).