Skip to content

optimize PRINT to eliminate string rewriting and scanning#38

Open
todd-richmond wants to merge 1 commit into
fastmail:masterfrom
todd-richmond:master
Open

optimize PRINT to eliminate string rewriting and scanning#38
todd-richmond wants to merge 1 commit into
fastmail:masterfrom
todd-richmond:master

Conversation

@todd-richmond

Copy link
Copy Markdown

the PRINT method does in-place front line erasure for every header line and has other inefficient logic. This causes a performance issue on messages with 100s or even 1000s of headers as well as very arge messages. We notice this processing millions of signed messages per day
This PR eliminates all string rewriting and optimizes end-of-header scanning. It also optimizes for the most common case of PRINTing a complete message in 1 call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant