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: