Sunmisc Unsafe
Sunmisc Unsafe
> > Yes, we could use PriorityQueueue, but then we would have to check for getDelay() > That's not a problem, the implementation would still be more cleaner. > >...
> > I have changed everything you mentioned except > > DelayQueue -> PriorityQueue > > The `DelayQueue` is fine for the wall clock but I was hoping to get...
perhaps we should abandon CompletableFuture and other callbacks altogether and use a regular synchronous API instead. Fiber - Virtual Threads (jdk 21+) will help to solve performance problems Of course,...
> What about return (-1 >>> Integer.numberOfLeadingZeros(input - 1)) + 1;? Makes the function into one line Yeah, thanks, that's better.
> оно не работает, больше 100 песен не отображаются в плейлисте, проверяй на 200-300 песнях Исправил, также все-таки вернул FJP, но теперь к каждому плейлисту есть "аффинити" на конкретный воркер...
Вообще, оно как-то странно работает "надокачку" плейлиста. Я модифицировал таблицу треков, теперь playlistId и trackId - связанный первичный ключ, на добавление дубликатов должно быть исключение, но скачивание треков все равно...
> > > оно не работает, больше 100 песен не отображаются в плейлисте, проверяй на 200-300 песнях > > > > > > Исправил, также все-таки вернул FJP, но теперь...
> > > > > оно не работает, больше 100 песен не отображаются в плейлисте, проверяй на 200-300 песнях > > > > > > > > > > >...
> @sunmisc we can easily forgive you for the long absence, but can't forgive the wrong formatting of the code :) our checkers won't let us merge your code until...
> > @sunmisc we can easily forgive you for the long absence, but can't forgive the wrong formatting of the code :) our checkers won't let us merge your code...