Issue Details (XML | Word | Printable)

Key: JDBC-495
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Mark Rotteveel
Reporter: Mark Rotteveel
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
Jaybird JCA/JDBC Driver

Load character sets on-demand, not on initialization

Created: 25/May/17 09:51 AM   Updated: 05/Jun/17 01:14 PM
Component/s: JDBC driver
Affects Version/s: Jaybird 3.0.0
Fix Version/s: Jaybird 3.0.1, Jaybird 4

Environment:  Excelsior Jet

 Description  « Hide
As reported by Hugo Larson on Firebird-java, when using Jaybird 3 in a (large) application compiled with Excelsior Jet, the initialization of the default EncodingFactory can take a long time if not all character sets are included in the compiled application (about 500ms per missing character set).

I have not been able to reproduce this behavior in Java applications running in a 'normal' JVM, but it might be worthwhile to change the character set handling to initialize on first use of a character set (if possible).

Note that including the missing character sets in the compiled Excelsior Jet application makes it fast again.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Mark Rotteveel added a comment - 04/Jun/17 02:23 PM
Changed code to load character sets on-demand.

Mark Rotteveel added a comment - 05/Jun/17 01:14 PM