- Parallelize HTML page downloads and static asset downloads by removing the intermediate WaitGroup barrier. - Fix a data race in `dn.AddData` by protecting it with the existing mutex. - Remove unsafe `if !downloaded[asset]` check in the second loop, relying on the thread-safe check within `downloadAndAdd`. - Verified ~25% performance improvement in simulated benchmark (44ms -> 33ms). |
||
|---|---|---|
| .. | ||
| pwa.go | ||
| pwa_test.go | ||