Skip to content

[registrar] Cache the System.Void type. - #1024

Merged
spouliot merged 1 commit into
dotnet:masterfrom
rolfbjarne:registrar-cache-system-void
Oct 28, 2016
Merged

[registrar] Cache the System.Void type.#1024
spouliot merged 1 commit into
dotnet:masterfrom
rolfbjarne:registrar-cache-system-void

Conversation

@rolfbjarne

@rolfbjarne rolfbjarne commented Oct 24, 2016

Copy link
Copy Markdown
Member
Duration before: 1,60s
Duration after:  1,54s
Difference:     -0,06s = -3,8%

Memory usage hardly changed (-21 kb of 540 MB), but the number of method calls
shrunk significantly.

Method calls before: 86.720.379
Method calls after:  74.390.061
Difference:         -12.330.318 = -14,2%

The call to GetSystemVoidType was #2 on the list of method calls (whens
sorted by 'self'), called 1072 times taking 1429 ms each time. After this
change it's only called once (and obviously pushed way down the list).

Duration before: 1,60s
Duration after:  1,54s
Difference:     -0,06s = -3,8%

Memory usage hardly changed (-21 kb of 540 MB), but the number of method calls
shrunk significantly.

Method calls before: 86.720.379
Method calls after:  74.390.061
Difference:         -12.330.318 = -14,2%

The call to `GetSystemVoidType` was #2 on the list of method calls (whens
sorted by 'self'), called 1072 times taking 1429 ms each time. After this
change it's only called once (and obviously pushed way down the list).
@rolfbjarne
rolfbjarne force-pushed the registrar-cache-system-void branch from dd44e79 to 4982822 Compare October 24, 2016 11:21
@monojenkins

Copy link
Copy Markdown
Contributor

Build failure

@rolfbjarne

Copy link
Copy Markdown
Member Author

build

@monojenkins

Copy link
Copy Markdown
Contributor

Build success

@spouliot
spouliot merged commit 6104a51 into dotnet:master Oct 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants