ByzantineFailure / BPM-for-Discord

BPM for Discord's Desktop App. Includes one-click installers, update notifications, and custom script support.
GNU Affero General Public License v3.0
17 stars 8 forks source link

Discord load is slow with BPM installed #88

Open ByzantineFailure opened 7 years ago

ByzantineFailure commented 7 years ago

The integration code, which has remained largely untouched since it was initially written, uses only synchronous function calls to read all of BPM's files from the filesystem before execution inside the discord context.

This causes Discord's load to take several seconds. We should use async fs methods to read the files to alleviate this. This does mean it'll take a few seconds for our search button to pop up and for emotes to actually process and render after the load, but ideally things should just work (they won't just work it's never that simple send help)