#Question Regarding Garbage Collection in Java

1 messages · Page 1 of 1 (latest)

solar tulip
#

Now I don't know if this the right place to ask but, i was wondering if there is somwhere a comparison between Lavaplayer and Lavalink-Client?

I just finished implementing a regular Music bot with Lavaplayer but the performance when the GC hits is quite noticable with some YT Tracks. It gets really bad when playing a HttpAudioTrack (yt-dlp + user input => soundcloud cdn link => HttpAudioTrack). I do that because Soundcloud changed api.

Is there a benefit of using Lavalink + Client library over just using Lavaplayer in terms of GC or overall performance?

Alternatively, for improvements the first thing I found was jda-nas (which does not work anymore since the jcenter link is offline -> http://jcenter.bintray.com) - so, no way of using that...

cold lance
#

lavalink uses lavaplayer
so no

#

that being said, do you use jda-nas?

solar tulip
cold lance
#

lavalink uses it too

#

jcenter is also read only

solar tulip
#

but this confuses me... do I need the jda-nas or not?

#

oh wait

cold lance
#

I think you should be able to even exclude that

#

lavalink lavaplayer publishes it's own lava common

solar tulip
cold lance
#

yep

#

this lava-common version ships with lavaplayer

solar tulip
#

and i assume the sample code form jda-nas would work for udpqueue? since it should do the same

cold lance
#

except from changing a few imports prob

#

actually, I don't even think that is needed

solar tulip
#

that's should be it right?

#

i don't know why i don't find the other one

cold lance
#

I don't use maven

#

No clue

#

Wait

#

You sure trying to exclude lava-common from lavaplayer

#

But you want to exclude it from udpqueue

solar tulip
#

OOH

#

wait is jda also using lava-common

#

hmm i get the same error when excluding from udpqueue

cold lance
#

JDA is doing nothing

#

JDA-NAS requires lava-common

solar tulip
#

so by excluding lava-common from udpqueue it should use the dependency from lavaplayer?

cold lance
#

That was my idea

#

Indeed

solar tulip
#

so technically i would need a lavaplayer version that has version 1.1.2 of lava-common?

cold lance
#

No

#

The API should probably be compatible

#

I don't think there have been any changes to lava-common in quite a while

#

Ig I did some changes when I added support for musl, but they are probably just drop in compatible

solar tulip
#

hmm still doesn't do the trick, there is probably a way, thanks so far!

cursive parcel
#

just use gradle

cold lance
#

I mean
You can also just add jcenter...

#

Or that

solar tulip
#

guess only option would be to change to gradle...

#

my jda-nas had a wrong version, now it works