[KULRICE-6704] reuse ObjectMapper instance in DocumentSearchInternalUtils for better performance Created: 13/Feb/12  Updated: 23/Feb/12  Resolved: 13/Feb/12

Status: Closed
Project: Kuali Rice Development
Component/s: Development, Performance
Affects Version/s: None
Fix Version/s: 2.0.0-rc3, 2.0
Security Level: Public (Public: Anyone can view)

Type: Improvement Priority: Major
Reporter: Peter Giles (Inactive) Assignee: Peter Giles (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Rice Module:
KAI Review Status: Not Required
KTI Review Status: Not Required


ObjectMapper caches stuff internally, so reusing it makes performance much better for.

Profiling doc search, we noticed that ObjectMapper.readValue (which is called inside DocumentSearchServiceImpl.getCriteriaFromSavedSearch inside DocumentSearchInternalUtils) seemed to be very slow. Some experimentation shows that reusing it was much faster.

Comment by Jessica Coltrin (Inactive) [ 23/Feb/12 ]

Closing since this item is now in the 2.0 release notes.

Generated at Fri Oct 30 08:15:58 CDT 2020 using JIRA 7.0.11#70121-sha1:19d24976997c1d95f06f3e327e087be0b71f28d4.