SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Loading af languages is slow

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
mivi71dk



Joined: 23 Jan 2009
Posts: 24

PostPosted: Mon May 28, 2018 9:00 am    Post subject: Loading af languages is slow Reply with quote

Hi

I have just recently updated the SIL files to one of our programs.
This was last done in 2012 Smile
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?
Back to top
View user's profile Send private message Send e-mail
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2120

PostPosted: Thu May 31, 2018 11:03 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
mivi71dk



Joined: 23 Jan 2009
Posts: 24

PostPosted: Wed Jun 20, 2018 11:56 am    Post subject: Reply with quote

Dont be sorry Smile
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?
Back to top
View user's profile Send private message Send e-mail
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2120

PostPosted: Wed Jun 20, 2018 5:20 pm    Post subject: Reply with quote

Just open SIL file in SIL Editor and select Export in application's menu and then SIB as export file type.
Back to top
View user's profile Send private message
mivi71dk



Joined: 23 Jan 2009
Posts: 24

PostPosted: Thu Jun 21, 2018 6:43 am    Post subject: Reply with quote

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

Thank you very much Smile
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group