csharptest
3faaac1b9a
Issue 71: CodedInputStream.ReadBytes go to slow path unnecessarily
10 years ago
Jon Skeet
9dc7d7225d
Optimize enum parsing. In a small enum-heavy benchmark, this improved the time
...
of the benchmark (parsing a repeated message, where each message had 5 "small"
enum values and 5 "large" enum values) from ~39s to ~11s.
There is a small memory cost per enum used, but I expect this to be trivial compared
with other per-type costs.
Fixes issue 97.
10 years ago
csharptest
d63096d1b2
Corrected code formatting and added TestCodedInputOutputPosition
12 years ago
csharptest
0a0dd0333a
Fix for bug in limited input stream's Position, Introduced Position on output stream
12 years ago
csharptest
92fcf3537f
Added the ability to instantiate a coded input with a pre-existing buffer
...
Added CodedInputStream.Position to return the current input stream position
12 years ago
csharptest
ef7091c9ed
Issue #54 : should retire all bytes in buffer (bufferSize)
12 years ago
csharptest
c9bce45a01
Portability Changes -
...
Removing uses of Enum to IConvertible from CodedIOStreams,
Removed MessageStreamIterator.FromFile on non-client profiles,
Removed use of Path.GetFileName,
Removed uses of Converter<T1, T2> delegate,
Removed Guid/DispId options from test protos
13 years ago
csharptest
6716432ca6
Last (hopefully) changes to pre-processing directives
13 years ago
csharptest
ad73b4250d
Fixing build for SILVERLIGHT and COMPACT_FRAMEWORK before adding more build
...
variations (WP). Changes are primarily superficial since they are to support
the Serialization assembly and unit tests compiling in the CF which has not
been done before.
13 years ago
Jon Skeet
2be3870a5f
Change "typeof (Foo)" to "typeof(Foo)" everywhere. I have no idea why I used to
...
include the space - it definitely doesn't look idiomatic...
13 years ago
csharptest
4ebef33289
Renamed SILVERLIGHT2 compilation constant to SILVERLIGHT
14 years ago
csharptest
60fd773d30
Completed work and testing for manually reading/writing start/end message
14 years ago
Jon Skeet
e8c76bd84b
Fix comments.
14 years ago
Jon Skeet
cdb4518ae0
Overload of ContinueArray for situations where we know in advance that the array isn't packed.
14 years ago
csharptest
9b3de69224
Changes from review f60f2676f7fa
14 years ago
csharptest
84f7e09f02
Fixed comment
14 years ago
csharptest
398a7f526c
Removed unnessary parital declaration
14 years ago
csharptest
74c5e0c376
Reformatted to include braces
14 years ago
csharptest
b00ea13eb1
Refactoring the ICoded interfaces (again) removing the use of some generic methods.
14 years ago
csharptest
ced18e10ae
Several performance tweaks
...
- Removed default value assingment when default is equal to default(T)
- Added Benchmarks for most types and repeated/packed arrays
- Left PopsicleList's list fields uninitialized util needed
- Changed CodedInputStream's repated/packed reader
- Changed Enum writers to simply cast to int
- Changed the WriteEnum to use object rawValue that provides .ToString() if needed
- Should be fully on par with original library for performance, gaining 2x-3x in some cases
14 years ago
csharptest
367e02261c
Performance tweek for reading entire unpacked array
14 years ago
csharptest
aef072a46f
Renamed Bytes to ByteArray and added a Reverse method.
14 years ago
csharptest
4ba365d793
Performance fix for double/float on read
14 years ago
csharptest
2772dfe8a1
Performance fix for float/double write bytes. Performance fix, do not use Array.Copy.
14 years ago
csharptest
17699c21f9
Extracted ICodedInputStream interface
14 years ago
csharptest
d2af9e923f
Refactoring of CodedInputStream.Read??? to use boolean return with out param.
14 years ago
csharptest
123e534914
Canged CodedInputStream.ReadTag to use boolean result with out params to
...
support reading a field name rather than a field tag.
14 years ago
csharptest
45a93fad4d
Optimized access to ByteString from coded io.
14 years ago
csharptest
71f662c33e
reformatted all code to .NET standard formatting
14 years ago
csharptest
10871cc8dd
Removed more uses of InternalsVisibleTo, made more stuff public :)
14 years ago
Jon Skeet
be4b86aeae
Fixed spacing
...
committer: Arnold Zokas <arnold.zokas@coderoom.net>
15 years ago
Charles Stanhope
71f203a1a0
Added CodedInputStream ctor symmetrical with CodedOutputStream.
...
committer: Arnold Zokas <arnold.zokas@coderoom.net>
15 years ago
csharptest
804b6d842e
Implementation work for Lite runtime and generator
15 years ago
csharptest
80e73b922e
Completed abstract lite builder and message
15 years ago
csharptest
d9c59e6613
First pass at interface breakup
15 years ago
Jon Skeet
f18a5b09ac
Fixed spacing
15 years ago
Charles Stanhope
ef234da0e3
Added CodedInputStream ctor symmetrical with CodedOutputStream.
15 years ago
Ayende Rahien
88732e254e
Minor
15 years ago
Ayende Rahien
4d2582081d
Fixing an issue where I passed the wrong value in, causing an error with long buffers
15 years ago
Ayende Rahien
162b656fdd
Implementing string interning
15 years ago
Jon Skeet
b49d3c7834
Support Compact Framework 3.5
16 years ago
Jon Skeet
0aac0e4fe3
Regionify copyright statement
16 years ago
Jon Skeet
3c80886fa9
Silverlight compatibility other than SortedList
16 years ago
Jon Skeet
2178b93bbb
Fix bug when reading many messages - size guard was triggered
16 years ago
Jon Skeet
60fb63e370
Initial Silverlight compatibility work
16 years ago
Jon Skeet
d6dd0a4560
Add CLSCompliance.
16 years ago
Jon Skeet
c298c89229
New tests, double build errors, and a few miscellaneous fixes
16 years ago
Jon Skeet
2e6dc12fa8
Write/Read delimited messages
16 years ago
Jon Skeet
25a28580a6
Support packed primitive types
16 years ago
Jon Skeet
6a60ac33d0
String optimisations
16 years ago