krateng

Results 62 comments of krateng

From the API docs, it looks like `duration` is the total length of the track, is that correct? It should be `track_length` then. Is there any reason you need the...

The API is of course meant to be compatible, so it should accept those fields, but Maloja itself doesn't need to store all information that Listenbrainz stores.

Do you have high CPU utilization during this process?

Hm, is that with cache enabled? While this certainly doesn't fix the issue you could replace the homepage check with a call to `/apis/mlj_1/serverinfo` for now which at least avoids...

Alright, have reproduced it, now working on profiling memory use... this will take some time.

I can only guess that when memory usage gets too high, the cache is expelled, but somehow some references remain, meaning the OS can't reclaim that memory. Then, on the...

Alright, maybe I fixed it. Off to more testing! 😅

Okay, I've pushed a new version. The homepage should now no longer cause RAM usage to go out of control. It still doesn't really explain why the cache expulsion didn't...

That's possible I suppose. I'll see if I can make the cache clearing a bit more proactive in the future.

The lru_dict structure doesn't support that unfortunately (and it's also somewhat hard to estimate the memory use of an object that consists of pointers), so I have to actively clear...