Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize bach-cljs bundle and performance #25

Open
slurmulon opened this issue Feb 17, 2021 · 0 comments
Open

Optimize bach-cljs bundle and performance #25

slurmulon opened this issue Feb 17, 2021 · 0 comments
Assignees

Comments

@slurmulon
Copy link
Owner

slurmulon commented Feb 17, 2021

Problem

The current bundle for bach-cljs package is quite large (around 400kb), and it also performs poorly, taking around 250ms to compile a simple three part track (yikes).

The same tracks return much quicker via CLI and bach-rest-api, so this almost certainly has to do with ClojureScript, and, I presume, the Google Closure dependencies.

Solution

Further research and isolate the cause of the poor performance in JavaScript.

Should also dig into bach.track/normalize-measures since this is by far the most complex method, and could be causing GC issues in JS land.

Also research shadow-cljs more deeply and determine if there are ways to optimize/tree-shake dependencies, most specifically the goog library.

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

No branches or pull requests

1 participant