Skip to content

Disable error sourcemaps during session test#19504

Merged
weswigham merged 2 commits into
microsoft:masterfrom
weswigham:disable-sourcemap-when-unneeded
Oct 26, 2017
Merged

Disable error sourcemaps during session test#19504
weswigham merged 2 commits into
microsoft:masterfrom
weswigham:disable-sourcemap-when-unneeded

Conversation

@weswigham

@weswigham weswigham commented Oct 26, 2017

Copy link
Copy Markdown
Member

The session API test takes 3.3s on my machine - most of this time is spent sourcemapping errors (intentionally generated) which are just swallowed by a null logger (I suspect source-map doesn't handle large files particularly elegantly - it spends a lot of time in a custom quickSort). This change disables sourcemaps on errors for the duration of the test, bring the test duration down from 3.3s to under 300ms (it no longer appears in the top 200, and I didn't bother digging for the exact time).

@weswigham

weswigham commented Oct 26, 2017

Copy link
Copy Markdown
Member Author

Also now disabling source maps on exceptions during the exceptions session-related suite, which reduces its runtime from 3s to <300ms.

@weswigham weswigham merged commit 6671485 into microsoft:master Oct 26, 2017
@weswigham weswigham deleted the disable-sourcemap-when-unneeded branch October 26, 2017 20:49
@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