File tree Expand file tree Collapse file tree 4 files changed +0
-152
lines changed
PolylineAlgorithm.Benchmarks
PolylineAlgorithm.Comparison.Benchmarks
tests/PolylineAlgorithm.Tests Expand file tree Collapse file tree 4 files changed +0
-152
lines changed Original file line number Diff line number Diff line change @@ -89,27 +89,4 @@ public void PolylineDecoder_Decode_FromMemory() {
89
89
. Decode ( StringValue )
90
90
. Consume ( _consumer ) ;
91
91
}
92
-
93
- /// <summary>
94
- /// Benchmarks the decoding of a polyline from read-only memory.
95
- /// </summary>
96
- [ Benchmark ]
97
- public void PolylineReader_ReadToEnd_Local ( ) {
98
- PolylineReader reader = new ( StringValue ) ;
99
-
100
- var result = ReadToEnd ( reader ) ;
101
-
102
- result
103
- . Consume ( _consumer ) ;
104
-
105
- static IEnumerable < Coordinate > ReadToEnd ( PolylineReader reader ) {
106
- var result = new List < Coordinate > ( ) ;
107
-
108
- while ( reader . Read ( ) ) {
109
- result . Add ( new ( reader . Latitude , reader . Longitude ) ) ;
110
- }
111
-
112
- return result ;
113
- }
114
- }
115
92
}
Original file line number Diff line number Diff line change @@ -106,27 +106,4 @@ public void PolylineUtility_Decode() {
106
106
. Decode ( StringValue )
107
107
. Consume ( _consumer ) ;
108
108
}
109
-
110
- /// <summary>
111
- /// Benchmarks the decoding of a polyline from read-only memory.
112
- /// </summary>
113
- [ Benchmark ]
114
- public void PolylineReader_ReadToEnd ( ) {
115
- PolylineReader reader = new ( StringValue ) ;
116
-
117
- var result = ReadToEnd ( ref reader ) ;
118
-
119
- result
120
- . Consume ( _consumer ) ;
121
-
122
- static IEnumerable < Coordinate > ReadToEnd ( ref PolylineReader reader ) {
123
- var result = new List < Coordinate > ( ) ;
124
-
125
- while ( reader . Read ( ) ) {
126
- result . Add ( new ( reader . Latitude , reader . Longitude ) ) ;
127
- }
128
-
129
- return result ;
130
- }
131
- }
132
109
}
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments