• 0.0.17

hone:optimize

Full name:

org.eolang:hone-maven-plugin:0.0.17:optimize

Description:

Converts Bytecode to Bytecode in order to make it faster.

This goal takes every .class file from the target/classes/ directory, converts it to .xmir format (which is XML representation of EO), then converts .xmir to .phi (which is 𝜑-calculus), then optimizes it via eo-phi-normalizer, and then back to .xmir and to .class. As a result, you obtain optimized Bytecode in the target/classes/ directory, which supposedly works faster than before.

The entire optimization pipeline happens inside Docker container, which is run from the image specified in the image parameter. The image may either be pulled or built locally. We recommend pulling it from the Docker Hub with the help of the pull goal. Also, we recommend deleting the image after optimization is done, with the help of the rmi goal.

Attributes:

  • Requires a Maven project to be executed.
  • The goal is not marked as thread-safe and thus does not support parallel builds.
  • Since version: 0.1.0.
  • Binds by default to the lifecycle phase: process-classes.

Optional Parameters

Name Type Since Description
<eoVersion> String 0.1.0 EO version to use.
User Property: hone.eo-version
<image> String 0.1.0 Docker image to use.
Default: yegor256/hone
User Property: hone.image
<jeoVersion> String 0.1.0 JEO version to use.
User Property: hone.jeo-version
<skip> boolean 0.1.0 Skip the execution, if set to TRUE.
Default: false
User Property: hone.skip
<sudo> boolean 0.1.0 Use "sudo" for "docker".
Default: false
User Property: hone.sudo
<target> File 0.1.0 The "target/" directory of Maven project.
Default: ${project.build.directory}
User Property: hone.target

Parameter Details

<eoVersion>

EO version to use.
  • Type: java.lang.String
  • Since: 0.1.0
  • Required: No
  • User Property: hone.eo-version

<image>

Docker image to use.
  • Type: java.lang.String
  • Since: 0.1.0
  • Required: No
  • User Property: hone.image
  • Default: yegor256/hone

<jeoVersion>

JEO version to use.
  • Type: java.lang.String
  • Since: 0.1.0
  • Required: No
  • User Property: hone.jeo-version

<skip>

Skip the execution, if set to TRUE.
  • Type: boolean
  • Since: 0.1.0
  • Required: No
  • User Property: hone.skip
  • Default: false

<sudo>

Use "sudo" for "docker".
  • Type: boolean
  • Since: 0.1.0
  • Required: No
  • User Property: hone.sudo
  • Default: false

<target>

The "target/" directory of Maven project.
  • Type: java.io.File
  • Since: 0.1.0
  • Required: No
  • User Property: hone.target
  • Default: ${project.build.directory}