Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

performance optimze for stdf4j #2

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

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