Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lazily create encoder for IncomingMessage
Approximately 2/3 of the initialization time of `new IncomingMessage` is taken by the `createEncoder` call within IncomingMessage's constructor. The vast majority of IncomingMessage usage is to decode the incoming message first to determine if it is relevant--i.e. to determine what document it belongs to. This change improves performance by avoiding the `createEncoder` call until we know it is actually necessary.
- Loading branch information