[jsword-devel] VerseKey change

DM Smith dmsmith at crosswire.org
Sun Feb 16 12:44:54 MST 2014


The mapping code casts a verse or a verse range from one versification to another in a few spots.

Typically this is by converting the VerseKey to an OSIS ref and then parsing it into another versification. This incurs a lot of overhead as the conversion to a string and then parsing it back to Verse, VerseRange or Passage is very expensive.

I've added to the VerseKey interface:
VerseKey reversify(Versification newVersification);

This does a blind cast from one v11n to another. While it is dangerous, it provides the performance that is appropriate.

I'm working on incorporating this into the mapping code.

In Him,
	DM

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4145 bytes
Desc: not available
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20140216/0fe50307/attachment.p7s>


More information about the jsword-devel mailing list