Author Topic: How to speed up zbedic?  (Read 3580 times)

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How to speed up zbedic?
« on: August 10, 2004, 01:14:30 am »
Could someone be so kind as to suggest a method to make zbedic run faster (there's no Fast Load option)?  It seems it's not due to the size of the databases.  With a small one (several mb) the program stills starts slowly.  BDicty is faster, but I like the databases for zbedic much better.

Thanks a zillion!  

ZDevil
« Last Edit: August 10, 2004, 01:16:28 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

lucho

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
    • http://
How to speed up zbedic?
« Reply #1 on: August 11, 2004, 07:29:05 am »
How slow is zbedic? How many dictionary files do you have?

zbedic parses the headers, and does integrity check of all the dictionary files on startup.

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How to speed up zbedic?
« Reply #2 on: August 12, 2004, 03:46:48 am »
I have 3 dictionaries of several mbs each on my Panasonic SD (high speed).  I timed the starting of zbedic and it took around 30 seconds.  Maybe I was mistaken, I felt that with wikipedia loaded it may take more than a minute to run.  

This makes me miss the day when I could access to kdic in a flash on my palm pdas...

Your comments and suggestions are most welcome!  Thank you.

ZDevil

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

lucho

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
    • http://
How to speed up zbedic?
« Reply #3 on: August 12, 2004, 04:01:24 pm »
ZDevil,

Can you try the version from: http://moria.ionkov.net/zaurus/zbedic/zbedic_0.9.2-2_arm.ipk. The only difference is that I removed the integrity checks. Unfortunately I cannot test with wikipedia dictionary (not CF card big enough), but on C760 with two big dictionaries (en-0.8.3 and enbgen-0.9.1) the startup time is less than 5 seconds.

Thanks

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How to speed up zbedic?
« Reply #4 on: August 12, 2004, 07:04:55 pm »
Thanks for your reply and reference, lucho.  Now I can understand more the working of zbedic.    

My version is 0.9.2-1.  I'm not aware of 0.9.2-2 (just can't find it anywhere, even sourceforge and z software index).  But when trying to download it from the link, I was told that I didn't have the permission to access the file on the server (downloading other files are ok) .  I'd better try later.  Thanks anyway.
« Last Edit: August 12, 2004, 07:05:35 pm by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

lucho

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
    • http://
How to speed up zbedic?
« Reply #5 on: August 12, 2004, 08:33:35 pm »
Argh, sorry. I forgot to setup the permissions. Please try again.

P.S. You won't be able to see 0.9.2-2 anywhere, because I just created it today for you to test

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How to speed up zbedic?
« Reply #6 on: August 12, 2004, 09:07:04 pm »
Thanks again.  I've tried your modified version, but it still takes about 30 seconds to run.  My C860 is running on Sharp rom w/ tetsu special kernal 1.4, and my SD card is Panasonic High Speed 256mb.  Has  anyone experience the same problem with this app?  Thanks.

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ashikase

  • Sr. Member
  • ****
  • Posts: 280
    • View Profile
    • http://
How to speed up zbedic?
« Reply #7 on: September 19, 2004, 06:54:37 am »
The speed problem might have to do with zbedic's use of the Global::findDocuments function. This function will search all media for a specified file (mime) type. Zbedic uses it to search for dictionary files (instead of just looking in the paths specified in Settings).

Any program that contains findDocuments (or FileSelector, which uses this function) is death with my 4GB microdrive... sometimes the program will never load. I modified the zbedic source, and now it pops up almost instantly on my Z.

I know this response is a little late, but maybe someone will find this useful.

- ashikase
  anpachi, gifu, japan
« Last Edit: September 19, 2004, 06:56:28 am by ashikase »
SL-C3100 & SL-C760

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
How to speed up zbedic?
« Reply #8 on: October 01, 2004, 03:56:03 am »
Quote
I modified the zbedic source, and now it pops up almost instantly on my Z.
Can you post the modified compiled binary?
I can't compile it myself.

Thanks.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze