Re: Memory optimization of NSAttributedString

2015-03-25 Thread Charles Jenkins
Thank you, Aki. It’s such an awesome and unexpected feature, I found it hard to believe my test results. --  Charles On March 23, 2015 at 16:54:11, Aki Inoue (a...@apple.com) wrote: Hi Charles Yes, NSAttributedString does unique attribute dictionaries. Aki On Mar 22, 2015, at 5:39

Re: Memory optimization of NSAttributedString

2015-03-23 Thread Aki Inoue
Hi Charles Yes, NSAttributedString does unique attribute dictionaries. Aki On Mar 22, 2015, at 5:39 AM, Charles Jenkins cejw...@gmail.com wrote: My app uses lots of attributed strings in “subdocuments” which get moved into and out of a text edit window. I began to wonder if I needed to

Memory optimization of NSAttributedString

2015-03-22 Thread Charles Jenkins
My app uses lots of attributed strings in “subdocuments” which get moved into and out of a text edit window. I began to wonder if I needed to add a cache for paragraph styles and string attributes, because when each subdocument gets loaded, I’m repetitively deserializing identical attributes