Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331073

Summary: Cache strings read from object file
Product: [Technology] RTSC Reporter: Chris McCormick <c-mccormick>
Component: RtaAssignee: Chris McCormick <c-mccormick>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Chris McCormick CLA 2010-11-24 18:24:06 EST
To improve RTA / ROV performance when repeatedly reading the same printf string from the COFF / ELF file, the strings should be cached when found.

This can be done in the OFReader implementations themselves, or somewhere higher in the stack.
Comment 1 Chris McCormick CLA 2010-12-06 18:08:33 EST
Fixed in xdctargets-d10.

Used a HashMap to store the mapping of address-to-string. 

Didn't add this caching to the version of findString which takes a specific section name; ROV and RTA currently don't call this other API. This would require a separate Section -> Address -> String map (or Address -> Section -> String).
Comment 2 Dave Russo CLA 2011-11-09 18:55:37 EST
closing "ancient" resolved bugs