diff options
author | Joshua Haberman <joshua@reverberate.org> | 2011-02-17 23:07:17 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2011-02-17 23:07:17 -0800 |
commit | d8b215486245e84e33283b6047fb253bbb418e00 (patch) | |
tree | 4c07a4d3162a0390be0b55d619ddab0e7a6acb23 /src/upb_decoder.h | |
parent | f1e1cc4695b34b292454e903adbf09e66cf2e9d5 (diff) |
First version of an assembly language decoder.
It is slower than the C decoder for now because it
falls off the fast path too often. But it can
successfully decode varints, fixed32 and fixed64.
Diffstat (limited to 'src/upb_decoder.h')
-rw-r--r-- | src/upb_decoder.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/upb_decoder.h b/src/upb_decoder.h index 5662c9c..d0848f8 100644 --- a/src/upb_decoder.h +++ b/src/upb_decoder.h @@ -70,6 +70,8 @@ struct _upb_decoder { // Msgdef for the current level. upb_msgdef *msgdef; + + size_t bytes_parsed_fast, bytes_parsed_slow; }; // A upb_decoder decodes the binary protocol buffer format, writing the data it |