Project

Profile

Help

Feature #4039

closed

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

Added by Michael Kay over 5 years ago. Updated about 5 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)

Actions #1

Updated by Debbie Lockett about 5 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.

Actions #2

Updated by O'Neil Delpratt about 5 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.

Actions #3

Updated by O'Neil Delpratt about 5 years ago

  • Status changed from Resolved to Closed

Please register to edit this issue

Also available in: Atom PDF