On Apr 26, 2007, at 9:00 PM, Kim Kohen wrote: > I've been working away on a project using the new RTF functions and > Base64Encoding to save styled text into a database. It's been going > amazingly well with small amounts of text (up to a few hundred words) > but today I tried it with a couple of thousand words and it ground to > a halt. Functions that take fractions of a second with small texts > are taking (literally) 30 or more seconds with 2000 words. Sometime I > simply get beachballed and have to force quit. > > I'm wondering if the problem is likely to be with the RTF functions > or the Base64Encoding? I'm going to strip out the encoding this > afternoon but I was hoping someone might have some insight into where > the likely problem lies.
It might be a memory management issue. Try feeding the characters from the source text some multiple of three characters at a time, concatenating the results together (any leftover from 3 at the end is fine). This should work because Base64Encoding turns each sequence of three characters into four. Regards, Guyren G Howe Relevant Logic LLC guyren-at-relevantlogic.com ~ http://relevantlogic.com REALbasic, PHP, Ruby/Rails, Python programming PostgreSQL, MySQL database design and consulting Technical writing and training _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
