-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Currently, lettuce has a strong dependency on Jackson. If you have previously used JSONB, JSONP, FastJSON, or Kotlin-serialize, then you must rely on Jackson. The version with string-type parameters has been removed. The getJsonParser() method must be run within a function each time, and the parse method constructs an ObjectMapper each time, which is a very slow operation and also wastes memory. The args are first converted into strings, then into byte arrays, and then wrapped with ByteBuffer, and finally the array is retrieved. The string version only needs a getBytes() operation. If you want to verify the validity of the JSON, you can use a similar encapsulation as JsonPath to check the validity of the JSON, without introducing other dependencies and without incurring a lot of performance-wasting overheads.