diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2015-12-17 16:45:32 -0500 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2015-12-17 16:45:32 -0500 |
commit | 6b228f35321ac9f734986952f5aa3c4eca477ae1 (patch) | |
tree | 71fcdca50f8866cbd399201740ff99d9f854fca1 /objectivec/GPBCodedInputStream_PackagePrivate.h | |
parent | 9e1777f4b05da6a65e2a60680e5924a802ae5c94 (diff) | |
parent | d6590d653415c0bfacf97e7f768dd3c994cb8d26 (diff) | |
download | protobuf-6b228f35321ac9f734986952f5aa3c4eca477ae1.tar.gz protobuf-6b228f35321ac9f734986952f5aa3c4eca477ae1.tar.bz2 protobuf-6b228f35321ac9f734986952f5aa3c4eca477ae1.zip |
Merge pull request #1060 from thomasvl/drop_spinlocks
Drop all use of OSSpinLock
Diffstat (limited to 'objectivec/GPBCodedInputStream_PackagePrivate.h')
-rw-r--r-- | objectivec/GPBCodedInputStream_PackagePrivate.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/objectivec/GPBCodedInputStream_PackagePrivate.h b/objectivec/GPBCodedInputStream_PackagePrivate.h index e482b4c9..90bd0c92 100644 --- a/objectivec/GPBCodedInputStream_PackagePrivate.h +++ b/objectivec/GPBCodedInputStream_PackagePrivate.h @@ -39,19 +39,6 @@ @class GPBUnknownFieldSet; @class GPBFieldDescriptor; -// GPBString is a string subclass that avoids the overhead of initializing -// a full NSString until it is actually needed. Lots of protocol buffers contain -// strings, and instantiating all of those strings and having them parsed to -// verify correctness when the message was being read was expensive, when many -// of the strings were never being used. -// -// Note for future-self. I tried implementing this using a NSProxy. -// Turned out the performance was horrible in client apps because folks -// like to use libraries like SBJSON that grab characters one at a time. -// The proxy overhead was a killer. -@interface GPBString : NSString -@end - typedef struct GPBCodedInputStreamState { const uint8_t *bytes; size_t bufferSize; @@ -92,10 +79,6 @@ typedef struct GPBCodedInputStreamState { CF_EXTERN_C_BEGIN -// Returns a GPBString with a +1 retain count. -GPBString *GPBCreateGPBStringWithUTF8(const void *bytes, NSUInteger length) - __attribute__((ns_returns_retained)); - int32_t GPBCodedInputStreamReadTag(GPBCodedInputStreamState *state); double GPBCodedInputStreamReadDouble(GPBCodedInputStreamState *state); |