Skip to content

Commit

Permalink
Added quick compilation and testing instructions
Browse files Browse the repository at this point in the history
Signed-off-by: Lene Preuss <[email protected]>
  • Loading branch information
Lene Preuss authored and lene committed Oct 13, 2021
1 parent bfc5f52 commit 8354fbe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions java/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Quick compilation and testing instructions
```bash
$ javac -d out src/com/here/flexpolyline/PolylineEncoderDecoder*.java
$ java -cp out com.here.flexpolyline.PolylineEncoderDecoderTest
```
to run the performance test with the default polyline length of 1000 vertices, or
```bash
$ java -cp out com.here.flexpolyline.PolylineEncoderDecoderTest $POLYLINE_LENGTH
```
to use `$POLYLINE_LENGTH` vertices for the performance test.
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ private static <T extends Throwable> void assertThrows(Class<T> expectedType, Ru
}

public static void main(String[] args) {
final int DEFAULT_LINE_LENGTH = 100000;
final int DEFAULT_LINE_LENGTH = 1000;
int lineLength = DEFAULT_LINE_LENGTH;
if (args.length > 0) {
lineLength = Integer.parseInt(args[0]);
Expand Down

0 comments on commit 8354fbe

Please sign in to comment.