Configuration Aalto StAX Parser For Speed

Overview

Aalto provides various configuration options for efficient performance based on environment constraints. In this article, we shall see how to configure Aalto for speed assuming that memory is not a significant constraint.

Create employee.xml as shown below.

Create TestConfigureSpeed class as shown below.

The configuration for speed is defined using
XMLInputFactory2.configureForSpeed()
(see line 17 below). This shall optimize Aalto parser so that the time taken to complete the parsing is minimized.

The output of the program is shown below:

Download Source Code for this Program

Configuration Aalto StAX Parser For Speed

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to top
Bitnami