| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| <#@ template debug="true" hostSpecific="true" #> | ||
| <#@ output extension=".cs" #> | ||
| <# | ||
| string[] internNames = new string[] |
There was a problem hiding this comment.
Why use a template generator, when you can simply get internNames from reflection? It looks like unnecessary complication.
Sorry, something went wrong.
There was a problem hiding this comment.
Two reasons make this scenario happened.
const string s = "1";
switch (
case "1":
// both "1" point to the same string
break;
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #1254 +/- ##
=======================================
Coverage 86.25% 86.25%
=======================================
Files 1 1
Lines 291 291
=======================================
Hits 251 251
Misses 40 40
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
Sorry, something went wrong.
|
@amos402 did you have a chance to compare benchmarks on your branch with InteropString.GetManagedString replaced by Runtime.GetManagedString? |
Sorry, something went wrong.
|
https://gist.github.com/amos402/8decd54dee57fe654e098bc0b15c061a CPU: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What does this implement/fix? Explain your changes.
Use the intern strings map to const strings instead of creating temporary strings everytimes.
Checklist
Check all those that are applicable and complete.