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

Theme: Performance #2

Open
AustinWise opened this issue Jan 11, 2022 · 0 comments
Open

Theme: Performance #2

AustinWise opened this issue Jan 11, 2022 · 0 comments
Labels
theme A desired property of the software; groups other issues

Comments

@AustinWise
Copy link
Owner

AustinWise commented Jan 11, 2022

The software should not waste resources wantonly. The following dimensions should be considered, very roughly in order of importance:

  • Installation time
  • Latency (time to first byte)
  • Startup time (probably correlated with binary size)
  • Binary size
  • Memory usage
  • Throughput (requests per second)

The software is currently intended to be used by a single user at a time, so throughput and scaling is not a huge concern.

Some concrete performance things to investigate:

  • Render markdown into the template engine's buffer directly. That is, instead of rendering markdown into a string, and then feeding that into the templating engine, have the markdown render expose a Write that is called from the template system's Write implementation.
  • Instead of rending templates into strings and then sending the contents over the wire, use the Write interface on templates to send directly to the socket. Some investigation will be required to see how much this change effects allocations and copying, as this may just shift the allocation from the template engine to the network abstraction.
@AustinWise AustinWise added the theme A desired property of the software; groups other issues label Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme A desired property of the software; groups other issues
Projects
None yet
Development

No branches or pull requests

1 participant