(non-urgent, won't spend time on this now, opening for future reference)
Problem
If a pattern is used multiple times then it will be shipped multiple times.
With the message persistence and our philosophy of "don't reuse messages" it is increasingly likely that we get identical message-patterns. Once we start having multiple patterns per message this will get even more pronounced.
Proposal
The paraglide compiler could detect duplicate patterns and re-use them internally. This wouldn't be visible to the developers and is largely an implementation detail.
(non-urgent, won't spend time on this now, opening for future reference)
Problem
If a pattern is used multiple times then it will be shipped multiple times.
With the message persistence and our philosophy of "don't reuse messages" it is increasingly likely that we get identical message-patterns. Once we start having multiple patterns per message this will get even more pronounced.
Proposal
The paraglide compiler could detect duplicate patterns and re-use them internally. This wouldn't be visible to the developers and is largely an implementation detail.