Project

Profile

Help

Feature #4039

Optimizing format-integer() when the picture/language are known statically

Added by Michael Kay about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Performance
Sprint/Milestone:
-
Start date:
2018-11-20
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.9
Fix Committed on Branch:
9.9
Fixed in Maintenance Release:
Platforms:

Description

Unlike other functions such as format-number() and format-date(), the format-integer() function does not optimize for the case where the picture and language are known statically.

This has been remedied. (Moreover, the mechanism now takes advantage of Java 8 higher-order functions, which makes it much simpler than previous mechanisms)

History

#1 Updated by Debbie Lockett about 3 years ago

Patch committed for the added FormatInteger.copy method to use System.Function.makeFunction() rather than new FormatInteger(); so that the details are actually copied.

The problem was causing a number of QT3 converted tests to fail at compile time, e.g. fn-format-integer-019.

#2 Updated by O'Neil Delpratt almost 3 years ago

  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 9.9.1.1 added

Bug fix applied to the Saxon 9.9.1.1 maintenance release.

#3 Updated by O'Neil Delpratt almost 3 years ago

  • Status changed from Resolved to Closed

Please register to edit this issue

Also available in: Atom PDF