dnlmlr
dnlmlr
So I did a bit of testing and performance actually is getting **worse** when using a growing ringbuffer in node. This might be caused by my implementation or my lack...
Ok I am definitely overthinking this whole thing, but I was curious and I looked a bit more into this. It seems that, at least in my testing, the queue...
Can you share how / what you benchmarked to come to that conclusion? I am also currently looking at possibly improving the performance of this library in certain situations. Especially...
Only changing the `new Array(4)` will not work since the wrap-around is not calculated by doing `index % this._list.length`, but by `index & this._capacityMask`. This means that the capacity must...
I did a small test implementation of this with a matching benchmark and it seems to work. Tested at 1_000_000, 1_000 and 100 element insertions it is consistently faster when...
> Wouldn't it made sense to just add a property to the `options` object at arg_1? Yeah that would probably be the other option. The problem I could see with...
Matching the built-in array functions sounds sane. I took another look at the functions and it seems that my initial comment was wrong since I missed the `void 0` which...
I saw this message coincidentally before turning off the pc for today, so I quickly made another PR (#47) that should fix the issue for `clear`
Feel free to try it out yourself, I'd be interested in the results. I literally just grabbed a random playlist (`spotify:playlist:37i9dQZF1DWZeKCadgRdKQ`) from the home screen and ran the playlist example...
The exact code I used for testing was this modification to the `examples/playlist_tracks.rs`: ```diff let plist = Playlist::get(&session, &plist_uri).await.unwrap(); - println!("{:?}", plist); + // println!("{:?}", plist); + let t1 =...