3052 Commits

Author SHA1 Message Date
wenshao
eb086e0a16 fix deserialize SubList, for issue #3364 2025-03-07 20:43:48 +08:00
wenshao
d4f3b141ce optimize next 2025-03-07 20:02:47 +08:00
wenshao
15827e78c0 optimize skipNumber 2025-03-07 19:45:07 +08:00
Shaojin Wen
c17a8d4a0d
Speed up SkipValue (#3365)
* add simd-benchmark

* checkstyle

* add simdjson benchmark

* fix checkstyle

* fix benchmark

* fix benchmark

* fix benchmark

* fast skip

* bug fix

* fieldClassSerializable for Record

* fast skip

* check style

* simplify skipNumber

* update benchmark

* update benchmark

* update benchmark

* optimize skipValue

* optimize skipValue

* optimize skipValue
2025-03-07 17:36:38 +08:00
wenshao
8a2abcce62 fix toJSON & toJavaObject, for issue #2227 2025-03-04 07:26:49 +08:00
高铁
35ec71105c optimize JSONReaderUTF8 2025-03-04 06:23:53 +08:00
wenshao
914aed5ab1 revert asm logic 2025-03-03 19:48:12 +08:00
wenshao
0e3eaac306 remove unused code 2025-03-03 14:52:39 +08:00
wenshao
163ff55bac add testcase for issue #3355 2025-03-03 07:15:18 +08:00
wenshao
76b90b2be3 Parameter support alternateNames 2025-02-27 07:43:41 +08:00
wenshao
0fccd4ee5b optimize readBool & readString null 2025-02-27 06:19:24 +08:00
wenshao
c12ef42a7e refactor(JSONWriterUTF8): Optimize string encoding methods
Refactored the string encoding logic by removing redundant variable assignments and modifying method visibility for better performance and maintainability.
2025-02-27 05:42:16 +08:00
wenshao
0a5013ead7 fix offset 2025-02-26 13:11:13 +08:00
wenshao
a4c841139d refactor ObjectReaderCreatorASM 2025-02-26 09:34:50 +08:00
wenshao
88c0a475ab simplify JSONReader 2025-02-26 07:31:21 +08:00
wenshao
0ddee42b57 simplify JSONReaderASCII 2025-02-26 05:44:07 +08:00
wenshao
2f6b8bcafe JSONReaderASCIISlash 2025-02-26 05:34:21 +08:00
wenshao
e8e9acb50d optimize JSONReaderUTF16::readString 2025-02-26 05:01:59 +08:00
wenshao
0e36eaa183 optimize JSONReaderASCIISlash 2025-02-26 05:01:55 +08:00
高铁
8c86b8ce0d indexOfSlashV 2025-02-25 19:09:49 +08:00
高铁
c9e109020e remove unused code 2025-02-25 18:58:40 +08:00
高铁
d11f0ef178 optimize JSONReaderASCII::readString 2025-02-25 18:48:27 +08:00
wenshao
df76155604 optimize readString 2025-02-24 14:14:30 +08:00
wenshao
cdceaf3c00 optimize readLocalDate 2025-02-24 14:14:30 +08:00
Hao Tang
8be4081b8a use 0x8080808080808080 as the non-ASCII mask in JSONReaderUTF8 (#3349) 2025-02-24 14:14:04 +08:00
wenshao
69f3610acc refactor(JSONReader): Simplify array creation logic
Simplified the logic for creating arrays by using a ternary operator, reducing code complexity and improving readability.
2025-02-24 07:44:04 +08:00
wenshao
395ac99511 refactor(ObjectReaderCreatorASM JSONReader): Remove redundant comma checks
Removed redundant calls to `nextIfComma()` in various parts of `ObjectReaderCreatorASM` and `JSONReader`, improving readability and reducing unnecessary method invocations.
2025-02-24 07:27:55 +08:00
wenshao
43386905fd optimize gen readObject 2025-02-23 22:04:50 +08:00
wenshao
8d02e8d690 optimize gen readJSONBObject 2025-02-23 19:55:37 +08:00
wenshao
1dc463b815 optimize gen readObject 2025-02-23 19:27:32 +08:00
wenshao
86f155b5c6 optimize IOUtils 2025-02-23 12:58:10 +08:00
wenshao
0f5ddf1761 optimize readOffsetDateTime 2025-02-23 12:15:41 +08:00
wenshao
5ec9959bb6 optimize writeName JSONB 2025-02-23 07:12:30 +08:00
wenshao
6d4de2cfc2 2.0.57 init 2025-02-22 08:32:08 +08:00
wenshao
63a6854da9 2.0.56 release 2025-02-22 08:12:14 +08:00
wenshao
3806502070 fix reference for issue #3347 2025-02-22 07:53:01 +08:00
wenshao
f90115722e refactor(JSONReader): Modify ResolveTask to final class
This change modifies the `ResolveTask` inner class in `JSONReader` to be `final`, enhancing the class's immutability and preventing subclassing.
2025-02-21 10:51:50 +08:00
wenshao
a632e14b37 fix(JSONReader): Add reference detection disable flag
Add support for disabling reference detection via a new feature flag (MASK_DISABLE_REFERENCE_DETECT). This improves performance in cases where reference tracking is unnecessary.
2025-02-21 10:26:05 +08:00
wenshao
9a1141ba36 add testcase for issue #3344 2025-02-21 07:06:10 +08:00
wenshao
bf09a303b3 buf fix 2025-02-21 06:49:45 +08:00
Shaojin Wen
2bbcc86d14
Optim jsonb write array mapping (#3346)
* optimize jsonb write array_mapping

* bug fix for codegen

* update benchmark

* refactor(ObjectWriterCreatorASM): Update method descriptor for writeListValueJSONB

This commit updates the method descriptor for `writeListValueJSONB` to use a constant (`METHOD_DESC_WRITE_LIST_VALUE_JSONB`) instead of defining it inline. This refactors the code for better readability and maintainability.
2025-02-21 06:26:41 +08:00
wenshao
d8a110b646 bug fix & simplify putByte 2025-02-21 05:25:46 +08:00
wenshao
2c59dd2861 refactor(NumberUtils, Scientific): Finalize fields and update multiplication logic
Finalized `output` and `count` fields in `Scientific` class to improve immutability. Updated multiplication logic in `NumberUtils` to use `MULTIPLY_HIGH` method consistently.
2025-02-21 00:42:12 +08:00
wenshao
3b365f25cf refactor(TypeUtils): Remove redundant BigDecimal constants
Removed unused `BigDecimal` constants related to JavaScript number limits as they are not utilized in current logic. This simplifies the class by removing unnecessary code.
2025-02-21 00:35:14 +08:00
wenshao
1e8c833d91 simplify IOUtils::writeLocalDate 2025-02-20 18:00:05 +08:00
wenshao
b560e50df2 fix dependency conflict 2025-02-20 17:59:41 +08:00
Shaojin Wen
60f94b0f2c
Feat 3335 (#3342)
* support JSONField#contentAs

* fix locale is null

* fix locale is null

* bug fix

* fix checkstyle

* bug fix

* contentAs support Map

* bug fix

* simplify
2025-02-20 08:07:05 +08:00
Shaojin Wen
c51c09511c
Optimize writer 202502 (#3340)
* optimize write json

* bug fix

* fix javadoc

* refactor

* optimize writeJSONB

* refactor

* checkstyle

* refactor

* simplify

* simplify
2025-02-19 07:06:59 +08:00
高铁
6b70e002e3 fix javadoc 2025-02-16 23:12:44 +08:00
wenshao
19d2c4200d optimize writeFloat 2025-02-16 21:36:33 +08:00