Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Rewrite: Support for custom JSON encoder #75

Closed
scragly opened this issue Aug 16, 2020 · 0 comments
Closed

Rewrite: Support for custom JSON encoder #75

scragly opened this issue Aug 16, 2020 · 0 comments

Comments

@scragly
Copy link
Member

scragly commented Aug 16, 2020

In line with PR #65 and the recommendation over at #68 (comment) by @Gelbpunkt, we'll try supporting custom JSON encoders in a more tightly integrated / cleaner manner in the new rewrite.

Possible alternative serialisers would be orjson and ujson.

Considerations of note

Due to orjson being a BSON serialiser, and Lavalink not accepting bytes, we should ensure we don't just focus on a basic swap of dumps, as we'll need to convert to unicode when testing orjson but shouldn't attempt to encode where unnecessary.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants