bl icon indicating copy to clipboard operation
bl copied to clipboard

Compare/equal

Open alanshaw opened this issue 4 years ago • 3 comments

Any plans/wants for comparing buffer lists without having to convert to buffer and then compare?

alanshaw avatar Aug 09 '19 12:08 alanshaw

It would be awesome to get a PR!

mcollina avatar Aug 09 '19 12:08 mcollina

Agreed. I'd love to keep a decent level of compatibility with the Buffer API but it requires time and effort! Does this happen to be for IPFS @alanshaw? Perhaps it's easier for me to justify putting in some effort if it is.

rvagg avatar Aug 10 '19 01:08 rvagg

Does this happen to be for IPFS @alanshaw? Perhaps it's easier for me to justify putting in some effort if it is.

I can't categorically say yes yet. I would definitely use it in tests right now, and it will very likely be useful in the future for production code. It just struck me as something missing that others might want also. I'm experimenting with using bl throughout the libp2p stack as it is converted to using async/await/async iterators.

alanshaw avatar Aug 10 '19 22:08 alanshaw