[jsword-devel] VerseKey change

Chris Burrell chris at burrell.me.uk
Sun Feb 16 13:11:02 MST 2014


Great stuff. Thanks!
On 16 Feb 2014 19:45, "DM Smith" <dmsmith at crosswire.org> wrote:

> 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
>
>
> _______________________________________________
> jsword-devel mailing list
> jsword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/jsword-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20140216/aea6d6db/attachment.html>


More information about the jsword-devel mailing list