Skip to content

Lower RWC Harness Memory Overhead#17692

Merged
weswigham merged 4 commits into
microsoft:masterfrom
weswigham:rwc-memory-madness
Aug 9, 2017
Merged

Lower RWC Harness Memory Overhead#17692
weswigham merged 4 commits into
microsoft:masterfrom
weswigham:rwc-memory-madness

Conversation

@weswigham
Copy link
Copy Markdown
Member

Just a bit. Swaps to using string concatenation instead of array.join for baseline creation, and moves RWC declaration checking to the final step, and factors making the compilation context out of starting the compilation, so the original compilation can be disposed before the new compilation is started (and then moves to testing the declarations last so that it can be disposed).

Comment thread src/harness/harness.ts Outdated

let firstLine = true;
function newLine() {
return firstLine ? (firstLine = false, "") : "\r\n";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather just see an if here.

@weswigham
Copy link
Copy Markdown
Member Author

@rbuckton done

@weswigham weswigham merged commit 4828c7a into microsoft:master Aug 9, 2017
@weswigham weswigham deleted the rwc-memory-madness branch August 9, 2017 23:16
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants