Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A Java parser for the ETF format

License

NotificationsYou must be signed in to change notification settings

austinv11/ETF-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Java parser/writer for the ETF format.

This api aims to provide a set of high-speed abstractions for ETF.Additionally, it supports multiple subsets of ETF: standard ETF, BERT-rpcand Hammer & Chisel's (Discord's) Loqui.

Using ETF-Java

TODO

A note about performance

While this project attempts to be as well optimized as possible, the JVMcreates a limit to how fast this can be just due to how it manages memory.

Performance can be improved via JNI or usage of theUnsafe classbut these have issues which has kept me using pure java.

Regarding JNI: I do not know enough C/C++ to properly optimize and therewould still be a cost for interfacing natives with java (meaning that forsmaller ETF data there won't be much of a benefit).

RegardingUnsafe: Unsafe isunsafe. Meaning it is not guaranteed towork across java versions and jvm implementations. So despite itssignificant performance benefits, it's impossible to be sure that it willalways work how I expect it to.

Caveats

Due to java not implementing proper primitive unsigned data types, I havebeen forced to use much larger data types than should be necessary toprevent potential underflows (ex.long instead ofint orBigIntegerinstead oflong). This causes some strange internal data type handlingand some slight overhead.

Helpful Resources

About

A Java parser for the ETF format

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp