[KULRICE-6704] reuse ObjectMapper instance in DocumentSearchInternalUtils for better performance Created: 13/Feb/12 Updated: 23/Feb/12 Resolved: 13/Feb/12
|Project:||Kuali Rice Development|
|Fix Version/s:||2.0.0-rc3, 2.0|
|Security Level:||Public (Public: Anyone can view)|
|Reporter:||Peter Giles (Inactive)||Assignee:||Peter Giles (Inactive)|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
|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.