Conversation
1) delete redundant field isUnlimited (-1 byte; simpler if) 2) integer division
|
PS: some ifs can be replaced with switch: It could be faster π€·ββοΈ to |
|
I have a litte bit more intrusive https://github.com/magicprinc/jox/commits/feature/more-optimizations/
I can push it here if you like |
|
ArrayBlockingQueue -vs- Channel.newBufferedChannel(1000) newUnlimitedChannel + https://github.com/magicprinc/jox/commits/feature/more-optimizations/ BUT .size() is required, to protect from queue blowing up and OOM |
|
I'm afraid we cannot change The other changes look good :) We could also do |
Pure abstract beauty Rolled back β |
|
done β
ββ I can push commits into separate PRsβ¦ |
|
Thank you :) |
|
Thank You for such amazing project! I really think it deserves the honor of joining the JDK. As for communications (openness, friendliness): You are the Nr.1 open source project author, that I have ever met π€π |
Well remember that it's just implementing an algorithm described and used in Kotlin :)
π now I have to try and keep up ;) |
ChannelClosedException isn't created directly and only used as a parent, so it should be an abstract class π
Channel.isUnlimited is redundant: extra byte and extra if condition
Replace Math.ceil with faster integer division