zed/crates/gpui2
Antonio Scandurra e4bc03217d
gpui2: Type-erase futures. (#3266)
Project2's LLVM IR size is ~33-44% bigger than project1 due to the fact
that in gpui2 we call async_task::spawn(_local) with impl Future instead
of dyn Future, which leads to quite a few more instantiations of
RawTask.

LLVM-IR size for project2:
|  build_type  |  main   |  this branch  | project1 |
|  debug       | 2617795 |    2022814    | 1817866  |
|  release     | 4439033 |    3715086    | 3314489  |

Note that this PR is in line with what was done in GPUI1 (we've also
boxed futures there).
Release Notes:

- N/A
2023-11-08 14:21:40 +01:00
..
src gpui2: Type-erase futures. (#3266) 2023-11-08 14:21:40 +01:00
build.rs Tooltips in mouse event handler & fix executor timer 2023-11-03 18:02:58 -04:00
Cargo.toml Remove dependency from gpui from editor2 2023-11-03 09:05:58 +01:00