Skip to content
This repository was archived by the owner on Nov 1, 2020. It is now read-only.

Conversation

@jkotas
Copy link
Member

@jkotas jkotas commented Nov 14, 2016

  • Introduce Utf8String and Utf8StringBuilder types
  • Change some of the name mangling to use these types
  • Change ISymbolNode.Mangled property to AppendMangledName method that takes Utf8StringBuilder to append the mangled name to, and NameMangler object to use
  • Switch implementation of number of simple properties to the more compact declarative syntax

This change reduces amount of GC allocations in the compiler and creates opportunities for further reductions. E.g. Total GC heap allocs for the Simple/Reflection test goes from 366 MB to 310 MB. It does not make anything measurably faster though.

Part of #2178

@jkotas jkotas changed the title Change the MangledName type to Utf8String WIP: Change the MangledName type to Utf8String Nov 14, 2016
@jkotas jkotas changed the title WIP: Change the MangledName type to Utf8String Change the mangled names to use Utf8String Nov 15, 2016
- Introduce Utf8String and Utf8StringBuilder types
- Change some of the name mangling to use these types
- Change ISymbolNode.Mangled property to AppendMangledName method that takes Utf8StringBuilder to append the mangled name to, and NameMangler object to use
- Switch implementation of number of simple properties to the more compact declarative syntax

This change reduces amount of GC allocations in the compiler and creates opportunities for further reductions. E.g. Total GC heap allocs for the Simple/Reflection test goes from 366 MB to 310 MB. It does not make anything measurably faster though.
@jkotas
Copy link
Member Author

jkotas commented Nov 15, 2016

@MichalStrehovsky PTLA

Copy link
Member

@MichalStrehovsky MichalStrehovsky left a comment

Choose a reason for hiding this comment

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

LGTM! I like where this is going!

@jkotas
Copy link
Member Author

jkotas commented Nov 15, 2016

@dotnet-bot test this please

1 similar comment
@jkotas
Copy link
Member Author

jkotas commented Nov 15, 2016

@dotnet-bot test this please

@jkotas jkotas merged commit 4434d03 into dotnet:master Nov 15, 2016
@jkotas jkotas deleted the utf8string branch November 26, 2016 04:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants