David Trotz wrote: > Troy, > >> You of all people should know this... :) SWORD stores all the tags >> inline in the text. When you start turning things OFF is when all the >> filters have to do work to remove things. If everything is left on, >> then the text is just handed back as it was stored. I'm still not >> convinced. :) >> >> > I should have known it, but I was honestly confused, but it does make > more sense the way you describe it. My guess is I need a better way to > grow my text buffer. There maybe another way. I maybe completely off base so set me straight if I am. Why not index the size so you know exactly how much to allocate on the first pass? We could create an index that would tell where in the file a chapter was located and the size of the chapter. One index for each text. I do not know if you currently have index files at the moment. I have a Bible indexing schema that will point to the beginning of each chapter and give the size. All that is needed to find a chapter is a book number and chapter number. My files had each chapter compressed which in a memory tight device is important. Food for thought. > It must be what is slowing me down so much. 'Cause > if I push in a single very long string I can render very fast, but when > I push in a verse at a time, I render very slowly. I will do some more > testing. > In Christ, > David Trotz > > > _______________________________________________ > sword-devel mailing list: sword-devel@crosswire.org > http://www.crosswire.org/mailman/listinfo/sword-devel > Instructions to unsubscribe/change your settings at above page > >
-- SonWon I choose God and all that my choice entails in this life even unto death and look forward to the new life that will come. _______________________________________________ sword-devel mailing list: sword-devel@crosswire.org http://www.crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page