Loading af languages is slow

This forum designated to discuss the TsiLang Components Suite.
Post Reply
mivi71dk
Posts: 25
Joined: Fri Jan 23, 2009 1:16 pm

Loading af languages is slow

Post by mivi71dk »

Hi

I have just recently updated the SIL files to one of our programs.
This was last done in 2012 :)
This size of the SIL file grew from 966.427 to 6.931.526.

Upon starting the program, I have these lines of code:

siLangDispatcher1.FileName := lStr;
siLangDispatcher1.ActiveLanguage := 2;
siLangDispatcher1.LoadAllFromFile(lStr);

Where lStr contains a link the the SIL file.

Now it takes significally longer to load. Both here (which I can live with) but alos when forms are being created at run time.

Is there a way to speed up this process?
Currently I use version 6.5.2.
Would an upgrade do a difference?

isiticov
Site Admin
Posts: 2207
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Hi,

Sorry for delay. Loading of SIL file with 7MB of size could be quite long. I would recommend to switch to SIB instead and the load time will dramatically decrease. Because SIL is just a modification of INI file and its loading takes quite time.
Hope this helps.

mivi71dk
Posts: 25
Joined: Fri Jan 23, 2009 1:16 pm

Post by mivi71dk »

Dont be sorry :)
I have a lot of work, so I didn't get around this until now.

Is there an easy way to convert SIL to SIB?

isiticov
Site Admin
Posts: 2207
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Just open SIL file in SIL Editor and select Export in application's menu and then SIB as export file type.

mivi71dk
Posts: 25
Joined: Fri Jan 23, 2009 1:16 pm

Post by mivi71dk »

Funny - file size doubled.
Speed was increased a lot.

Thank you very much :)

Post Reply