Commit Graph

10 Commits

Author SHA1 Message Date
Todd Treece 279389a781
Fix: Switch to lazy init() in decoder and encoder (#490)
* Switch to lazy init() in decoder and encoder

This will prevent go-json from consuming heap unless it is used.

* limit changes to initEncoder and initDecoder
2024-12-11 21:52:23 +09:00
Nao Yonashiro e43fb0f990 fix: add filtering on slow path 2022-03-25 03:03:25 +09:00
Nao Yonashiro 48f6412cd1 fix: to safe when got unexpected typeptr 2022-03-19 09:33:16 +09:00
Masaaki Goshima 89bcc3be86
Supports dynamic filtering of struct fields 2022-01-03 12:33:51 +09:00
Masaaki Goshima b5e1478450
Refactor compiler for encoder
- Introduced a two phase compilation to calculate Opcode index accurately
- Fix display number of Opcode
- Improve memory footprint for Opcode
2021-11-28 02:14:57 +09:00
Masaaki Goshima 994dc9ea9d Fix encoding of empty interface type 2021-06-25 20:17:12 +09:00
Masaaki Goshima 7cf15fc56c Fix opcode layout
- Adjust memory layout of the opcode to 128 bytes in a 64-bit environment
2021-05-29 14:47:18 +09:00
Shawn Wang 7e03a13225 Add type addrShift to enable bigger encoder/decoder cache
Change-Id: I630fa501f3b96702b69a40bc0b2f79f4db2a57eb
2021-05-10 13:39:37 +08:00
Masaaki Goshima 5093e5bd78 Add type infromation to the debug information 2021-03-27 12:35:43 +09:00
Masaaki Goshima 62b7d3ba0a Move compiler for encoder to internal package 2021-03-16 19:44:32 +09:00