JSword

TransformingSAXEventProvider always checks the last modified date

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.6.1
  • Component/s: o.c.common.xml
  • Labels:
    None
  • Environment:

    Windows, Java 6.

Description

Repeated use of org.crosswire.common.xml.TransformingSAXEventProvider spends a large amount of time in getTemplateInfo() checking the last modification date of the stylesheet.

That is obviously a useful feature if you are developing a stylesheet, but could it be changed to a capability that is disabled by default?

Additionally, the initialisation of the TransformerFactory takes quite a bit of time. Could it change to only being initialised when it is needed?

Activity

Hide
Stephen Denne added a comment - 14/Jul/09 2:38 PM

The application where I encountered this issue is applying a stylesheet once for every verse in the bible, since I need to know the length of the output for each verse.

Show
Stephen Denne added a comment - 14/Jul/09 2:38 PM The application where I encountered this issue is applying a stylesheet once for every verse in the bible, since I need to know the length of the output for each verse.
Hide
DM Smith added a comment - 25/Nov/10 6:57 AM

Done. Great suggestions. Sorry for the long delay.

Show
DM Smith added a comment - 25/Nov/10 6:57 AM Done. Great suggestions. Sorry for the long delay.

People

Vote (0)
Watch (1)

Dates

  • Created:
    14/Jul/09 2:34 PM
    Updated:
    25/Nov/10 6:57 AM
    Resolved:
    25/Nov/10 6:57 AM