anchor.diff:  For small tasks such as converting an AsciiDoc document, there are two +JRuby+ flags can improve the startup time:
   
   .JRuby flags
  -[cols="1,2", options="header"]
  -|===
  -|Flag
  -|Value
  -
  -|+jruby.compat.version+
  +[cols="1m,2"]
  +|===
  +|Flag |Value
  +
  +|jruby.compat.version
   |RUBY1_9
   
  -|+jruby.compile.mode+
  +|jruby.compile.mode
   |OFF
   |===
   
   Both flags are set by default inside +asciidoctor-java-integration+ project, so we do not have to worry about setting them manually.
   
  -As mentioned before, there are some +java+ flags that can also be used for this purpose. These flags depends on version of +JDK+ and also if you are working on 32/64 bits version. These flags can be set by using +JRUBY_OPTS+ environment variable. Let's see a summary of these flags and in which versions can be used.
  -
  -.java flags
  -[cols="1,2" options="header]
  -|===
  -|Flag
  -|JDK
  -
  -|+-client+
  +As mentioned before, there are some Java flags that can also be used for this purpose. These flags depends on version of +JDK+ and also if you are working on 32/64 bits version. These flags can be set by using +JRUBY_OPTS+ environment variable. Let's see a summary of these flags and in which versions can be used.
  +
  +.Java flags
  +[cols="1m,2"]
  +|===
  +|Flag |JDK
  +
  +|-client
   |32 bits Java
   
  -|+-Xverify:none+
  +|-Xverify:none
   |32/64 bits Java
   
  -|+-XX:+TieredCompilation+
  +|-XX:+TieredCompilation
   |32/64 bits Java SE 7
   
  -|+-XX:TieredStopAtLevel=1+
  +|-XX:TieredStopAtLevel=1
   |32/64 bits Java SE 7
   |===
   
  -[source, bash]
  +[source,bash]
   .Setting flags for Java SE 6
   ----
   export JRUBY_OPTS="-J-Xverify:none -J-client"
  
positive.code: This is content of first content part
  
  [[partId]]
  [style two,role="partRole"]
  --
  And content of second content part
  
  
negative.code: product.setSmallImage(new Image((String)document.getHeader().getAttributes().get("smallImage"),product.getTitle()));
  
  product.setDescription(document.getPartByStyle("description").getContent());
  
  List<ContentPart> images = document.getPartsByContext("image");
  for (ContentPart image : images) {
      Image image = new Image();
      image.setSrc((String) image.getAttributes().get("target"));
      image.setAlt((String) image.getAttributes().get("alt"));
      product.getImages().add(image);
  }
  
  product.setDetail(document.getPartByStyle("detail").getContent());
  ----
  
  