Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You’d have to structure it differently, it’s definitely not a free lunch


Right, but if this framework enabled that optimization, I’d expect it to have some examples showing how you’d implement it. As far as I can tell, there’s no way to structure your code to allow parallel component rendering with this framework.


With the current renderer (which is super basic because simplicity and features were the main priority over optimization for now), if a component has multiple async children, they will be resolved concurrently. I assume that's what you meant by "parallel". Not sure why that would need an example, but you can simply create a component that calls asyncio.sleep(1), then create a bunch of instances and render them to test it.

I want to have at least the same level of concurrency when the new, better optimized renderer lands.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: