Page 1 of 1

Loading af languages is slow

Posted: Mon May 28, 2018 9:00 am
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?

Posted: Thu May 31, 2018 11:03 am
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.

Posted: Wed Jun 20, 2018 11:56 am
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?

Posted: Wed Jun 20, 2018 5:20 pm
by isiticov
Just open SIL file in SIL Editor and select Export in application's menu and then SIB as export file type.

Posted: Thu Jun 21, 2018 6:43 am
by mivi71dk
Funny - file size doubled.
Speed was increased a lot.

Thank you very much :)