#!/bin/sh
# Start DXF Viewer with more memory
# The meaning of the options is as follows:
# -mx1000m : maximum allowed memory (1000 MBytes = 1 GByte)
# -ms256m  : initially allocated memory (256 MBytes)
# -XX:MaxTenuringThreshold=0 : special setting for the
#	garbage collector which tells it that the viewer
#	is using objects either shortly or for a quite long
#	duration. As a result it does less internal copying 
#	which speeds up loading of larger files by 10-30%
# -jar    : run the jar file which follows
java -XX:MaxTenuringThreshold=0 -ms256m -mx1000m -jar dxfviewer-swing.jar "$@"
