Kifflom!
This commit is contained in:
parent
b92d43c5ed
commit
ef69dfedd3
|
@ -42,7 +42,7 @@ cat test.json | kifflom -s ".bananas#0.weight .prices.*"
|
||||||
|
|
||||||
As you can learn from benchmarks described below, kifflom's lexer itself is
|
As you can learn from benchmarks described below, kifflom's lexer itself is
|
||||||
roughly 8.5 times slower than the standard JSON parser on any amount of data.
|
roughly 8.5 times slower than the standard JSON parser on any amount of data.
|
||||||
You can benefit from low and constant memory usage, although I don't think you would.
|
A fellow father-brother can benefit from low and constant memory usage, although I don't think he would.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Running lexer tests and benchmarks
|
# Running lexer tests and benchmarks
|
||||||
|
|
|
@ -57,9 +57,7 @@ func (c *context) compare(c2 *context) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *context) push(typ expectationType) {
|
func (c *context) push(typ expectationType) {
|
||||||
c.exps = append(c.exps, expectation{
|
c.exps = append(c.exps, expectation{typ: typ})
|
||||||
typ: typ,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *context) pop() {
|
func (c *context) pop() {
|
||||||
|
|
Loading…
Reference in New Issue