Activity log for bug #1194720

Date Who What changed Old value New value Message
2013-06-26 04:51:34 Matthias Brantner bug added bug
2013-06-26 17:32:45 Paul J. Lucas zorba: status New Incomplete
2013-06-26 18:24:41 Matthias Brantner description The "castable as" expression has a big performance bottleneck because its implementation uses cast as followed by catching a potential exception. Constructing the exception (including the parameter substitution for the error message) takes a lot of time and it's not needed. The "castable as" expression has a big performance bottleneck because its implementation uses cast as followed by catching a potential exception. Constructing the exception (including the parameter substitution for the error message) takes a lot of time and it's not needed. A query to reproduce this is as follows: jsoniq version "1.0"; for $value in ( "true", "false", ((1 to 1000) ! ($$ cast as string)) ) return if ($value castable as boolean) then $value cast as boolean else if ($value castable as double) then $value cast as double else if ($value castable as decimal) then $value cast as decimal else if ($value castable as integer) then $value cast as integer else $value The attached screenshot shows the relevant part of a callgrind profile.
2013-06-26 18:24:48 Matthias Brantner zorba: status Incomplete Confirmed
2013-06-26 18:25:17 Matthias Brantner attachment added Screenshot_6_26_13_11_23_AM.png https://bugs.launchpad.net/zorba/+bug/1194720/+attachment/3714837/+files/Screenshot_6_26_13_11_23_AM.png
2013-07-12 00:41:57 Paul J. Lucas branch linked lp:~zorba-coders/zorba/bug-1194720
2013-07-12 00:42:02 Paul J. Lucas zorba: status Confirmed In Progress
2013-07-17 21:11:57 Paul J. Lucas zorba: status In Progress Fix Committed