A list for the developers of CellML tools

Text archives Help


[cellml-dev] Very slow getPositionInXML function in VACSS


Chronological Thread 
  • From: alan.garny at dpag.ox.ac.uk (Alan Garny)
  • Subject: [cellml-dev] Very slow getPositionInXML function in VACSS
  • Date: Thu, 19 Jan 2012 09:21:57 +0100

> > When someone opens a CellML model, I want that person to know
> > straightaway whether the model contains errors/warnings, so not an
option.
>
> We are talking about getPositionInXML, not running VACSS validation - you
> can get the list of errors, but it is assigning line and column numbers in
the
> raw XML to those errors that is expensive. Why not just do what the
> xulrunner-based OpenCell did, and show the errors, without a line number,
> and only work out where the error is in the file at the point the user
wants to
> go to the error location?

This wouldn't be perfect, but it would indeed 'address' my issue with
getPositionInXml. Not perfect because, as in OpenCell, you can end up with
many messages that read exactly the same. For example, if I open that
moderately big model in OpenCell, I get many messages that read "Warning:
MathML equals element has inconsistent units between the sides" which from
an end-user's perspective doesn't mean much: no idea where the warning
originated from (unless you in the right view and double click on the
message).

Otherwise, even though getPositionInXml is indeed my current bottleneck,
getValidityError is also somewhat slow...

Alan





Archive powered by MHonArc 2.6.18.

Top of page