Re: [sword-devel] Question for Optimization / speed experts

2003-01-07 Thread David White
nner loop would have another 1 iterations. So we get > > > 10.000*10.000=100.000.000 = one hunred million iterations. This is ways > > > > too > > > > > slow and ways too much. > > > This needs on my 1.2GHz Atlon with 512 MB Ram more then five seconds. &g

Re: [sword-devel] Question for Optimization / speed experts

2003-01-07 Thread David White
- Personally, I would find a list of *all* keys more desirable (that > is, list any key that is found in any of the chosen lexicons). I > took a look at Bibleworks when visiting my brother (he is teaching > OT) and noticed it has a feature where instead of having a window > per dictionary,

Re: [sword-devel] Question for Optimization / speed experts

2003-01-06 Thread David White
C++ has a standard algorithm called set_intersection - found in the header . Given two sorted sequences, it will output the items that are found in both sequences. This function is very efficient, and with use of it, I think your problem should become trivial. Documentation for this algorithm can b

Re: [sword-devel] Sword and MSVC++

2002-10-30 Thread David White
I have MSVC++6; tell me what needs building and I'll try it. I might also be able to get access to MSVC++7, since we have it at work. -David. On Wed, 2002-10-30 at 16:19, Joel Mawhorter wrote: > Is VC++ 5 known to work with Sword? What sorts of problems are you having? I > would prefer to test

Re: [sword-devel] sword namespace

2002-10-01 Thread David White
I'd just like to point out a few things on this: - Firstly, I think it's a really good idea, and I think I suggested it a while ago :) - Some older or less conforming compilers might not know about or like namespaces - You also might like to consider creating sub-namespaces, for instance anything

Re: [sword-devel] SWConfig Changes

2002-09-05 Thread David White
On Thu, 2002-09-05 at 14:08, Troy A. Griffitts wrote: > > - An additional constructor for SWConfig should be provided which takes > > a sequence of configuration files, which are all loaded and combined > > - A method should be provided which allows loading of a configuration > > file and merging

[sword-devel] SWConfig Changes

2002-09-04 Thread David White
Hi everyone, I'm looking to get involved in Sword development, and Troy has asked me to look at some changes to the SWConfig module. I have drawn up a brief specification of proposed changes, and I ask interested parties to peruse the specification and provide comments and feedback. Current Beha

Re: [sword-devel] parser

2002-03-10 Thread David White
oops, please ignore that email, it was sent by mistake.. On Sun, 2002-03-10 at 20:09, David White wrote: > #include > #include > #include > #include > #include > #include > #include > > using std::string; > > struct verse { >

[sword-devel] parser

2002-03-10 Thread David White
#include #include #include #include #include #include #include using std::string; struct verse { verse(string b, string c, string v) : book_name(b), chapter_num(c), verse_num(v) {} string book_name, chapter_num, verse_num; }; struct range { range(const verse& v) : lower(v), uppe

Re: [sword-devel] UML Diagrams

2002-03-01 Thread David White
I needed to reverse engineer some C++ code into UML diagrams at my workplace, so I wrote a Python script, which does a reasonably good job of it. It doesn't export to any common formats (except images), but that could be added without too much trouble. If anyone is interested, let me know. Blessi

Re: [sword-devel] BUG in general book support

2002-02-27 Thread David White
Why is it that containers have to "set" the key they are operating on? This seems a little awkward to me. I think it would be a good idea to move towards supporting full-strength bidirectional or random-access iterators across modules, compliant with the specifications of the C++ standard, so as

Re: [sword-devel] 1.5.3 + optimizations

2002-02-20 Thread David White
if you're cross > compiling, right? If I'm compiling for my system using a locally compiled > version of the compiler (or at least one native to my processor) I should be > able to leave those options off, I think. > > Gregg > > - Original Message - > From:

Re: [sword-devel] 1.5.3 + optimizations

2002-02-19 Thread David White
This is likely because in C++, all C runtime functions (isalpha, isdigit, strcmp, strncpy and so on and so forth) are meant to be in the std namespace, rather than in the global namespace. So, you have to use std::isalpha instead of isalpha (and likewise for all C runtime functions). Many C++ com

Re: [sword-devel] optimizations

2002-02-14 Thread David White
When I have a little more time, I will look over this in more detail, but an obvious small change to me is the function SWModule::filterBuffer. It contains the following code: FilterList::iterator it; for (it = filters->begin(); it != filters->end(); it++) { (*it)-

Re: [sword-devel] Some Comments on Sword's Code

2002-02-13 Thread David White
002-02-11 at 04:07, David White wrote: > > While I was looking through the searching code for Sword, I noticed a > > few things which seemed little strange, and I thought I'd make comments > > on ways in which they could be improved: > > > > there is lots of code

Re: [sword-devel] location of configuration information

2002-02-13 Thread David White
.sword/ > > > Sword data can be place anywhere on your system. One of these 4 > mechanisms must be used to tell the engine WHERE your data lives. I > don't think we need more mechanisms to specify WHERE. > > Does this make sense? > > -Troy. > > >

Re: [sword-devel] Why Sword?

2002-02-12 Thread David White
That is why I would suggest using a configuration script of some kind. Users should not have to be root to install Sword, and I assume Sword is intended to work on a wide variety of platforms, which may have very different directory hierarchy schemes. Thus it is important for Sword to robustly sup

[sword-devel] Some Comments on Sword's Code

2002-02-11 Thread David White
While I was looking through the searching code for Sword, I noticed a few things which seemed little strange, and I thought I'd make comments on ways in which they could be improved: there is lots of code in destructors that looks like this: if (entrybuf) delete [] entryb

Re: [sword-devel] Why Sword?

2002-02-11 Thread David White
On Mon, 2002-02-11 at 14:45, John Stovall wrote: > But for third world missionary efforts in my opinion the > emphasis of Sword needs to be turned towards very easy to use > Linux modules. I concur. I have a couple of suggestions for making Sword easier to install and use: - firstly, the website

Re: [sword-devel] Why Sword?

2002-02-11 Thread David White
On Mon, 2002-02-11 at 02:26, Trevor Jenkins wrote: > > > For those who don't know or have forgotten I proposed an inverted file > search system. Every word to be indexed and its position recorded. The > position pointers should be of two forms. For a Bible search program the > obvious one is pos

RE: [sword-devel] Why Sword?

2002-02-10 Thread David White
eveloping Bible-based applications, and how Sword can improve to address these issues. God Bless, David White. On Sun, 2002-02-10 at 11:51, Chris Little wrote: > > > > Sword removes much of the burden of designing new Bible software. > > > Most of the underlying issues, su