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

Async Streaming #78

Open
shadowtime2000 opened this issue Jan 10, 2021 · 1 comment
Open

Async Streaming #78

shadowtime2000 opened this issue Jan 10, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@shadowtime2000
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
No not really.

Describe the solution you'd like
A function, stream?, that creates a stream which can be sent to the browser or destination for faster TTB.

Describe alternatives you've considered
None.

@shadowtime2000 shadowtime2000 added the enhancement New feature or request label Jan 10, 2021
@shadowtime2000
Copy link
Collaborator Author

This will most likely require #70 so we can shim the streams if they can be used. I see two ways to handle this:

  1. Parse the entire thing and then render bit by bit

We could parse the entire template and then keep on splicing parts of the AST off and rendering them instead of rendering the entire AST.

  1. Parse bit by bit and render bit by bit

We could also use a special parsing engine based off the one we currently have which will find each %> parse until that and then render that and then repeat.

The second one would probably be a lot more faster than the first one, but it would be hard to do the partial parsing especially since we have stuff like allowing delimiters in comments and such. If we did the second way I think it would be best to wait until @nebrelbug shows up to do his parsing magic and stuff.

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

No branches or pull requests

1 participant