Michael Lamparski

Results 115 comments of Michael Lamparski

Oops! No it cannot, because it requires mentioning the unstable `Try` trait! :stuck_out_tongue: I guess I'll leave this here though for once it actually *can* be done. (that time must...

Even 100MB is way too big. Today I had a reported issue where rustc used over 8GB of memory because a single 12MB file was misplaced into the directory.

I do admit it that it is a fairy simple implementation (and I would not have expected the immensely popular `quote!` macro to have such problems!), but I can confirm...

Okay, so I tried my suggestion above, and: * changing it to `include_bytes!` drops the memory usage to "only" 700MB. (but this is is still a tenfold decrease, and it's...

Sorry for hijacking this issue, by the way. I've created #33 as a separate actionable item or for continuing this discussion.

Actually wait a second, I don't think the above is even how I would implement the current rule anyways, because it would be repeatedly checking nested blocks. I don't think...

Current status: * `Sp` is currently 320 bytes * If I use black magic and sorcery to make `Span` and `Option` both 8 bytes, the size reduces to 256. This...

**Boxing `Stmt` did not help.** I made all Stmt-producing productions return `Box` or `Box` instead and dereferenced each when inserted into an AST node. I copied the symbol enum from...

From with the boxed Stmts. ![image](https://user-images.githubusercontent.com/1411280/141699766-05703aad-c542-4517-8935-b95ac01d62da.png) Doesn't look like a significant contribution from allocation, it's still all memcpy...

I tried replacing the boxes with a `qcell`-based `Pool` abstraction with a tiny fixed-size pool of two reusable `Option` and `Option`s. The statements in the symbol enum effectively became `&'a...