Jump to content

Please read the Forum Rules before posting.

Photo
* * * * * 1 votes

e-Sword Performance


27 replies to this topic

#1 jonathon

jonathon

    e-Sword Fanatic

  • Contributors
  • PipPipPipPipPip
  • 753 posts
Offline

Posted 08 February 2012 - 12:10 AM

Inasmuch as e-Sword performance has been mentioned a couple of times over the last few days, the following might be useful:

How long e Sword takes to start depends on several factors:
  • How much RAM the systems has;
  • How many programs are running in the background;
  • How many resources one has;
  • What anti-malware software is running;
  • How many fonts are installed1;
  • How the hard drive is connected to the computer;
  • AMD chips provide better e Sword performance than Intel chips2.
  • Free disk space;
  • The more RAM that one has installed, the faster e Sword will start;
  • The more programs that are running in, the longer e Sword takes to start;
  • The more resources one has, the longer e Sword takes to start;
  • Anti-malware that looks at each read, and/or each write operation, will significantly slow down e Sword;
  • Drives that have USB connections are considerably slower than drives with SATA connections;
  • Using resources on a CD or a DVD will negatively impact e Sword performance;
  • For optimal system performance, Windows requires at least 25% of the disc partition to be free;
  • For optimal system performance, Windows requires at least 25% of the disc drive to be empty3;
  • Linux requires the swap partition to be at least four times the size of System RAM4;
1 On my Linux box, with 180 000 fonts installed, e Sword 9.7.2 takes roughly 25 minutes to start. With 4 000 installed fonts, e Sword 9.7.2 takes roughly 1 minute to start. I do not know if the same effect occurs on Windows.

2 If the specifications for the AMD chip are 25% less than those of the Intel chip, the AMD chip provides equal performance. If the AMD chips specifications are less than 25% of the Intel chip, then the AMD chip provides better performance than the Intel chip.

3 This is in addition to the percentage of free space on each partition.

4 The usefulness of this has been questioned. The Linux kernel still expects to find a swap partition of this size.

###

The issue that both I and Vaugn have run into, is "too many resources". My recomendation is for no more than 500 resources of all types. I obviously don't follow my own recomendation on this point.

jonathon

#2 Vaughn

Vaughn

    e-Sword Addict

  • Veterans
  • PipPipPipPip
  • 74 posts
  • LocationKaufman, Texas
Offline

Posted 08 February 2012 - 09:35 AM

In other words, your performance will vary depending on a lot of things and because each user is different, performance of e-Sword will be different.
Grace and Peace,
Your fellow Swordsman,
Vaughn R. Jacobs

#3 Ebed Doulos

Ebed Doulos

    e-Sword Fanatic

  • Members (T)
  • PipPipPipPipPip
  • 294 posts
Offline

Posted 08 February 2012 - 11:02 AM

Which can be said for almost every program out there. It is a marvel to me that programmers can make software that works the way it should for the vast majority of people.
Posted Image

#4 APsit190

APsit190

    e-Sword Tools Developer

  • Members (T)
  • PipPipPipPipPip
  • 2,866 posts
  • LocationLand of the Long White Cloud (AKA New Zealand)
Offline

Posted 08 February 2012 - 05:57 PM

Which can be said for almost every program out there. It is a marvel to me that programmers can make software that works the way it should for the vast majority of people.


Hi Ebed,
Its not really that difficult to do providing the programmer sticks to two cardinal rules.
  • KISS (Keep It Simple Stupid)
  • WYSIWYG (What You See Is What You Get)
If programmers just stick to these two basic principles, the outcome for the user will be a great experience, and its this, which I believe, Rick Meyers has done with e-Sword.

Oh yeah, I nearly forgot; there is a third one, and one which we programmers tend to be fighting a loosing battle on: Eliminate any risk of user error which would cause the program to crash. That one is perhaps the most difficult out.

Blessings,
Autograph.png

Edited by APsit190, 08 February 2012 - 06:03 PM.

X (formerly Twitter)

 


#5 jonathon

jonathon

    e-Sword Fanatic

  • Contributors
  • PipPipPipPipPip
  • 753 posts
Offline

Posted 08 February 2012 - 06:09 PM

  • How many resources one has;



I appear to have mislaid my specifications for e-Sword 9.x. :(
I'll have to spend some time playing with e-Sword 10.0.7 to determine the hard limits.

The following should provide any idea of how many resources are too many.

85.2: SQLite File Limits
When SQLite was first created, the only limitation was a 2^32 bit limit imposed by the hardware of that time1. Since then, the limits have been radically decreased --- usually as security enhancements.

The following are the maximum limits for SQLite 3.1.6:
  • The limits listed here apply only if the following are true:
  • SQLITE_MAX_LENGTH = 1,000,000,00;
  • SQLITE_MAX_COLUMN = 2,0002;
  • SQLITE_MAX_FUNCTION_ARG = 1003;
  • SQLITE_MAX_EXPR_DEPTH = 1,0004;
  • SQLITE_MAX_LIKE_PATTERN_LENGTH = 50,000 bytes;
  • SQLITE_MAX_VARIABLE_NUMBER = 999;
  • SQLITE_MAX_ATTACHED = 105;
  • SQLITE_MAX_PAGE_SIZE = 32,768;
  • SQLITE_MAX_PAGE_COUNT = 1,073,741,823;
  • Database table6:232 (?)
  • Number of characters in a table name: Platform dependent;
  • Number of characters in a field name: Platform dependent;
  • Number of fields in a table: 232, 2^32, 4,294,967,2967;
  • Number of open tables: Program dependent: 216 (?);
  • Table size:
  • Number of characters in a field: 1,000,000,00;
  • Maximum size of a BLOB: 2,147,483,647 bytes;
  • Maximum size of a string: 2,147,483,647 bytes
  • Number of indexes in a table: Program dependent;
  • Number of fields in an index: Program dependent;
  • Number of characters in a validation message: Program dependent;
  • Number of characters in a validation rule: Program dependent;
  • Number of characters in a table or field description: Program dependent;
  • Maximum size of a record: 1 Megabyte8;
  • Number of characters in a field property setting: Program dependent;
  • Database:
  • File size: 2 Terrabytes9;
  • Number of objects in a database: Program dependent;
  • Modules: Program dependent;
  • Number of characters in an object name: Program dependent;
  • Number of characters in a password: Implementation dependent;
  • Number of characters in a user name or group name: Program dependent;
  • Number of concurrent users: Program dependent;
  • Other:
  • Number of open tables: Program dependent;
  • Maximum number of records: 232, 2^32, 4,294,967,29610 11;
  • The limitations in SQLite databases are dependent upon the tool used to read/write the database;
  • Limitations within e Sword will be added, when, and as they become known;
  • The largest "functional" e Sword resource I've seen was 500 MB in size;
  • The most resources I've had in a running e Sword instance has been circa 15K;
85.3: Limitations within e Sword
At roughly 500 installed resources (Bibles, Dictionaries, Commentaries) e Sword 9.0.1 performance becomes somewhat sluggish.

At roughly 5,000 installed resources (Bibles, Dictionaries, Commentaries) e Sword 9.8.3 will freeze up, when switching between resources. The duration of the system freeze depends upon how much RAM is available to e Sword.

e Sword can be a resource hog. If you don’t need a resource, don’t keep it in a folder that e Sword can access.

1 Since source code is available, it is theoretically possible to rewrite that code so that the only limit is the 2^128 bit limit imposed by bleeding edge hardware.

2 A compile time option enables this to be set as large as 3267.

3 A compile time option enables this to be set to 127.

4 A compile time option enables this to be set to 0, thereby putting no limits on the size.

5 A compile time option enables this to be set to 30.

6 Most limitations are dependent upon the program used to access the database.

7 This is three different ways of representing the same number.

8 A compile time option enables this to be set to 16 megabytes.

9 Most POSIX compliant back ends have a 2 GB limit.

10 You will probably max out the size of the database, before maxing out on the number of records.

11 This is three different ways of representing the same number.


jonathon

#6 katt5365

katt5365

    New to Bible Support

  • Veterans
  • Pip
  • 9 posts
Offline

Posted 05 March 2012 - 09:08 AM

To speed up E Sword on my pc, I just deleted unintentional duplicate or unused resources (after making a backup should I need to use them in the future) especially the Audio Bible. Helped a lot. And I still have a backup in case I want to go back to one particular resource.)
Rev 1:17 And when I saw him, I fell at his feet as dead. And he laid his right hand upon me, saying unto me, Fear not; I am the first and the last:
Rev 1:18 I am he that liveth, and was dead; and, behold, I am alive for evermore, Amen; and have the keys of hell and of death.

Jer 15:16 Thy words were found, and I did eat them; and thy word was unto me the joy and rejoicing of mine heart: for I am called by thy name, O LORD God of hosts.

BH Clendennen Preaching the Gospel 24/7
My Personal Website: It's About HIM:

#7 MJ_

MJ_

    e-Sword Fanatic

  • Veterans
  • PipPipPipPipPip
  • 210 posts
  • LocationCyberspace
Offline

Posted 08 March 2012 - 08:39 AM

This is an interesting topic. I have seen a little lag in my esword loading recently but I also have a number of resources of every sort that I am spoiled with and prefer to keep. The extra load time is not a problem as it is typically much less than a minute.
One of the things that I have seen is a lag while using the editors. I find that while working in editors that there are lags when I click my cursor location to different lines, or into and around different words I see lags of 5 seconds or more at times. usually when I see that happening and I am going to continue to edit and move around in a file I will go to my commentary and my dictionary windows and turn off the linking. That seems to help. Not sure if anyone else sees this kind of thing or not. Would be interested in your feedback if you have seen similar things.

Mj

Edited by Michel Scr, 08 March 2012 - 08:43 AM.


#8 DoctorDaveT

DoctorDaveT

    e-Sword Fanatic

  • Members (T)
  • PipPipPipPipPip
  • 426 posts
Offline

Posted 08 March 2012 - 10:25 AM

eSword loves RAM. If you have a relatively low cost option to add some, you will notice an increase in speed. Dictionaries in particular slow eSword down, as well as the editors.

Dave
visit www.DoctorDaveT.com for eSword modules, software tips, & more


#9 APsit190

APsit190

    e-Sword Tools Developer

  • Members (T)
  • PipPipPipPipPip
  • 2,866 posts
  • LocationLand of the Long White Cloud (AKA New Zealand)
Offline

Posted 08 March 2012 - 11:10 PM

Well, I've got the max amount of RAM my PC can take (1GB), running Windows XP Home. When I bought the PC it only had 256MB of RAM. I have just over 2GB of e-Sword resources, and it takes about 1.5 minutes for e-Sword to load. I could take off half the Bibles, Commentaries, and Dicts, and etc, and that would certainly take some of the pressure off e-Sword and make it a bit faster.

But then again, I can't be bothered doing that as I dunno when I'm going to need a particular resource, so I keep everything on and don't whinge about my e-Sword running slow. Anyway, its good fun having all that stuff on there and seeing e-Sword slogging its guts out. :D

See, in many respects I'm just lazy about switching modules around and streamlining them to those that I regularly use. Not only that, e-Sword looks kind of naked without all the modules I have on it. :lol: Well, that's my excuse anyway.

Blessings,
Autograph.png
X (formerly Twitter)

 


#10 MJ_

MJ_

    e-Sword Fanatic

  • Veterans
  • PipPipPipPipPip
  • 210 posts
  • LocationCyberspace
Offline

Posted 11 March 2012 - 09:16 AM

eSword loves RAM. If you have a relatively low cost option to add some, you will notice an increase in speed. Dictionaries in particular slow eSword down, as well as the editors.


Thanks for your replay to my message. I had a couple of questions in regards to what you wrote if you have this knowledge I would be interested in knowing more in regards to the following response.

My resource monitor is telling me that I am using 60% of available ram with esword open. I have 2GB available. Obviously the amount of memory will change as other applications open. I am curious how much more memory esword is going to reach for as I work and move around in the editors, open up different bible modules etc..
Or another question, with 60% used and 40% available is (esword) it limiiting itself in some way?

Kind regards,
Mj



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users




Similar Topics



Latest Blogs