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

Separate Source Code Line Mappings in Skulpt #95

Open
acbart opened this issue Jan 13, 2023 · 0 comments
Open

Separate Source Code Line Mappings in Skulpt #95

acbart opened this issue Jan 13, 2023 · 0 comments

Comments

@acbart
Copy link
Collaborator

acbart commented Jan 13, 2023

This is really actually more of a Skulpt thing, but I wonder if it's not a solution for trimming down the code base size significantly for JS-compiled Pedal?

The idea started for #94, where I would have to support out-sourcing large strings to a JSON file anyway. Well, what if we did the same thing with the source code lines in Pedal? Export each file/line to a big ol' JSON map-of-lists, and have the stack traces reference that instead of the compiled source code. Then we're not rebuilding large strings nor loading them each time we reload the module. We just have them once, loaded separately.

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

No branches or pull requests

1 participant