[mobile-devel] [sword-devel] Bishop (Android C++ SWORD)

Troy A. Griffitts scribe at crosswire.org
Wed Oct 27 12:34:36 MST 2010


Thanks Brian,

I am currently of the persuasion that indexed searching is not the way to go on Android. 4 seconds is quite an acceptable speed to wait for a search and no index creation time or versioning headaches. Searches can also be more easily customised.  For example, full text searches (i.e. unindexed searches) in the engine currently support regex and searching on any entryAttribute created by any filter.

There are benefits to indexed searching of course, especially when dealing with searches across a large library of books, but for a simple handheld reader of just a few books, I'm still leaning toward favoring unindexed if the results can be returned in under 7 seconds.

But we support both so it is a matter of use case and preference really.

For example, in my personal study, I typically only search a single Greek text or English text. I very seldom search a commentary or lexicon.  So I might decide to index my 2 frequently searched modules and be willing to wait 10 seconds to brute force search any of my other 200 modules and not have them indexed.  In reality, on my laptop the speeds to brute force are nearly instant anyway.

Thanks for the numbers.  Any thoughts?

Troy




"Brian J. Dumont" <bdumont at ameritech.net> wrote:

>Troy,
>
>Search times for an HTC Evo running standard HTC-version of Android 2.2:
>
>God love world: 4.576s
>God: 12.111s
>
>As a side note, if we're looking for speed it seems like it would make
>the most sense to focus on indexed searches.  "And-Bible", which uses
>Java but indexed searches, seems to get roughly:
>
>God love world: 1s
>God: 7s
>
>Thanks for your work!
>Brian
>
>
>
>On 10/26/2010 07:43 PM, Troy A. Griffitts wrote:
>> OK, a couple things.  Changed result list logic from using String+= to
>> using StringBuffer.append and cut out the time delay between the end of
>> the search and the display of the large result set.
>>
>> I also have some numbers from my old G1 running Cyanogen 1.6 (Android 2.2+).
>>
>> Today's build:
>>
>> http://crosswire.org/~scribe/bishop-20101026.apk
>>
>>
>>
>> KJV "God love world" (6 results)
>>
>> 4.722 seconds		G2	stock Android 2.2
>> 19.485 seconds		G1	Cyanogen 1.6 / Android 2.2
>>
>>
>>
>> KJV "God" (3578 results)
>>
>> 13.966 seconds		G2	stock Android 2.2
>> 52.535 seconds		G1	Cyanogen 1.6 / Android 2.2
>>
>>
>> _______________________________________________
>> sword-devel mailing list: sword-devel at crosswire.org
>> http://www.crosswire.org/mailman/listinfo/sword-devel
>> Instructions to unsubscribe/change your settings at above page
>>
>>   
>
>
>_______________________________________________
>sword-devel mailing list: sword-devel at crosswire.org
>http://www.crosswire.org/mailman/listinfo/sword-devel
>Instructions to unsubscribe/change your settings at above page

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.



More information about the mobile-devel mailing list