[sword-devel] Delays in rendering?

Greg Hellings greg.hellings at gmail.com
Sun Feb 22 13:36:12 MST 2015

sword::SWMgr library (new sword::MarkupFilterMgr (sword::FMT_PLAIN));

This line of code should only be executed once at program start-up and
any time you detect a change in the installed modules - basically
after interacting with the install manager to install a new work.
(Even then there might be a refresh option, as the instantiation of
the manager not only searches for modules but also for installed
locale files). If you move that to a location where it does not
execute every time navigation changes, you should see substantially
improved performance.


On Sun, Feb 22, 2015 at 2:20 PM, David "Judah's Shadow" Blue
<yudahsshadow at gmx.com> wrote:
> On February 22, 2015 11:11:00 AM EST, "Troy A. Griffitts" <scribe at crosswire.org> wrote:
>>That's all fine. The initialization hit I spoke about in my last email
>>will happen in the first section of your code. After that, you second
>>section can run as many times as you'd like and should be extremely
>>fast. Where are you noticing the speed delay?
> Pretty much each time a passage is requested. But I'm running the whole block of code each time so it's being initialized each time, is there a call I should be making separately to only initialize once?
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page

More information about the sword-devel mailing list