Skip to content

Conversation

@AdamSpeight2008
Copy link
Contributor

Just need some performance data on a "standard machine".

This adds peep functionality into the scanner, which is combination of CanGet and Peek. It does not alter the existing content of the out parameter (ch) when CanGet is false.

NOTE: This is different mechinism to TryParse methods, this is deliberate so that existing value can be used in subsequent conditions.
Usage of Peep in ScannerXML
Remove redundant `Me.` calls.
Check to see `DateIsInvalid = False` before doing additional work to see if date is invalid.
Tidy up `ScanIntLiteral` method signature.
Tweaks to the temporaries use with `Peep`.
Removed some commented out code.
…Peep_2)

* commit '9e38e83ea8d04cf4dfdcab70aa47aa4f0e2be6ef':
  Reduction in the number of temporary char variables from the use of `Peep`
  Minor Updates
  [Compiler VB Scanner] Tidy up `ScanIntLiteral` method signature.
  [Compiler VB Scanner] Check to see `DateIsInvalid = False` before doing additional work to see if date is invalid.
  [Compiler VB Scanner] Remove redundant `Me.` calls.
Utilise `Peep` in more places.
@AdamSpeight2008
Copy link
Contributor Author

@dotnet-bot retest prtest/win/dbg/unit64 please.

…pushing the cast (if any) high up."

This reverts commit 094b85e.
Added short-cutting for `InvalidDates`
This reverts commit 014e568.
…cutting for `InvalidDates`"

This reverts commit 69ae88d.
Change If-Statements to Select Case
Changed `IntegralLiteralCharacterValue` to use a lookup list.
@davkean
Copy link
Member

davkean commented Nov 17, 2015

Tag @dotnet/roslyn-compiler, can someone please take a look?

@gafter
Copy link
Member

gafter commented Nov 17, 2015

@davkean Why would we look at a "DO NOT REVIEW" PR?

@TyOverby
Copy link
Contributor

@davkean The title of this pull request is "DO NOT REVIEW"

@davkean
Copy link
Member

davkean commented Nov 17, 2015

Ah, didn't see that, usually look at the labels. Adding them.

@davkean davkean added PR For Personal Review Only The PR doesn’t require anyone other than the developer to review it. in progress labels Nov 17, 2015
@AdamSpeight2008
Copy link
Contributor Author

@davkean I'm an external contributor hence why I can't tag issues, so I prefix the title.

@davkean davkean added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Nov 18, 2015
@davkean
Copy link
Member

davkean commented Dec 1, 2015

Closing this as it has become stale.

@davkean davkean closed this Dec 1, 2015
@AdamSpeight2008 AdamSpeight2008 deleted the Scanner_Peep2a branch April 11, 2018 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 - Working Area-Compilers cla-already-signed Community The pull request was submitted by a contributor who is not a Microsoft employee. PR For Personal Review Only The PR doesn’t require anyone other than the developer to review it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants