Skip to content

performance optimze for stdf4j#2

Open
lantianjialiang wants to merge 8 commits intoliquidkarma:masterfrom
lantianjialiang:master
Open

performance optimze for stdf4j#2
lantianjialiang wants to merge 8 commits intoliquidkarma:masterfrom
lantianjialiang:master

Conversation

@lantianjialiang
Copy link

the key point is change the string.intern to String(data, offset, length, ASCII)

lantianjialiang and others added 8 commits April 12, 2018 10:53
performance optimize:
1. change the ByteArray to singleton
2. new Float/Double to Float/Double.valueOf
3. change the  "new String(cbuf, 0, length).intern()" to new
String(data, offset, length, ASCII)
4. change the Arrays.copyOfRange to System.arraycopy

one 1.2G stdf file need 24s with "record.getData()" called,
after optimized, the time is 6.8s~7.2s(test env, RHEL7.4, Java 1.8)
add the exception to RecordVisitor;
change the record name to upper case in xml file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant