Devlog 2
This update mostly includes optimization and changing how things work internally. 3 days ago I saw in my code I was storing a large object in memory just to return it as soon as it was created, it was an easy fix but saves a lot of memory. The next major change was moving my v.next() function into a parameter that could be directly used in middleware.
Before:
app.use((v) => {
return v.next()
})
After:
app.use((v, next) => {
return next()
})
This might seem like nothing but this allows you to write more after the middleware finishes so it is now possible to run code after the next middleware is ran. I also realized I should’ve done this earlier because it gives my framework a better structural advantage so I am able to add more routers which is exactly what I am working on now.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.