-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Import maps and performance (HTTP/2) #2697
Copy link
Copy link
Open
Description
Rails is going the way of supporting import maps by default as its new JS solution. This means that Rails apps can make 100+ requests to the application server as they traverse the import map.
To make this fast in Puma, I have a few concerns:
- HTTP/2. This is almost certainly a starting requirement. So, we have to decide what approach we're going to take here - graft on helper libraries to the existing native extensions, or scrap the parser entirely and use something in Ruby, etc.
- Benchmark. Should be easy to create a before/after benchmark here.
- Rack. I remember last time we evaluated HTTP/2 in HTTP 2.0 #454 there were a lot of concerns about how this would all map to Rack, which were basically never resolved.
Other things we'll probably come up as we're spiking this. Right now, I want to know:
- Who's interested in getting involved
- What technical approach we're going to take for HTTP/2 support
- What other technical barriers might exist (I/O?) for making fast importmaps a reality.
Reactions are currently unavailable