Joshua Haberman
61e5d367ff
Change the API for getting the bootstrapped defs.
...
The symtab that contains them is now hidden, and
you can look them up by name but there is no access
to the symtab itself, so there is no risk of
mutating it (by extending it, adding other defs
to it, etc).
14 years ago
Joshua Haberman
bdb28b5a45
Make "byval" benchmarks actually byval.
14 years ago
Joshua Haberman
c358fff57f
Cache decoding objects for better benchmark results. (~15%)
...
I would prefer to find an API that is both fast and doesn't
require this, but we'll do this for now.
14 years ago
Joshua Haberman
6e308b7e80
Fix upb's parsetostruct benchmark.
14 years ago
Joshua Haberman
0313826cef
Benchmarks compile and run again!
14 years ago
Joshua Haberman
2a617bf12c
Optimizations and bugfix to benchmark.
15 years ago
Joshua Haberman
372c8f0487
Fixes to benchmark.
15 years ago
Joshua Haberman
678799082b
Stream decoding benchmark.
15 years ago
Joshua Haberman
d5566c6038
Remove struct keyword from all types, use typedef instead.
15 years ago
Joshua Haberman
9116c697f8
upb_parser -> upb_decoder
15 years ago
Joshua Haberman
b05205d224
Defined upb_sink interface and ported the parser to it.
15 years ago
Joshua Haberman
18291eedc3
Make defs refcounted, rename upb_context->upbsymtab.
...
There is currently a memory leak when type definitions
form cycles. This will need to be dealt with.
15 years ago
Joshua Haberman
a95ab58e79
Overhaul defs to derive from a common base.
15 years ago
Joshua Haberman
cb6c34275f
Fix memory leak in test.
15 years ago
Joshua Haberman
33a68acb14
Use a status object for errors so a message can be returned.
...
Also delay deletion of subfields until the entire message is
deleted.
15 years ago
Joshua Haberman
a022e6ebdb
Fixes for more discerning compilers.
15 years ago
Joshua Haberman
75134e6f9d
Small stylistic improvements in benchmarks.
15 years ago
Joshua Haberman
f17ed90f77
Some cleanup and reformatting, fixed the benchmarks.
15 years ago
Joshua Haberman
306bc554c6
More work on benchmarks (performance tests).
16 years ago
Joshua Haberman
84cd1538ee
Integrated benchmarks into main Makefile.
16 years ago