You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by GitBox <gi...@apache.org> on 2021/06/22 00:43:12 UTC
[GitHub] [james-project] chibenwa opened a new pull request #505: [PERFORMANCE] A collection of minor performance enhancements
chibenwa opened a new pull request #505:
URL: https://github.com/apache/james-project/pull/505
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org
[GitHub] [james-project] chibenwa commented on pull request #505: [PERFORMANCE] A collection of minor performance enhancements
Posted by GitBox <gi...@apache.org>.
chibenwa commented on pull request #505:
URL: https://github.com/apache/james-project/pull/505#issuecomment-865444392
https://github.com/apache/james-project/pull/505/commits/5c7ab34fe3eda088e4a99930b2c79aa754d60084
## Before

0.12% of CPU, 0.09% of memory
## After
No traces :-)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org
[GitHub] [james-project] chibenwa commented on pull request #505: [PERFORMANCE] A collection of minor performance enhancements
Posted by GitBox <gi...@apache.org>.
chibenwa commented on pull request #505:
URL: https://github.com/apache/james-project/pull/505#issuecomment-865440094
https://github.com/apache/james-project/pull/505/commits/2356b2164c938ef0600f804d26d37c62de6015da
## Before
`Message$Builder.build` takes 11.4% of MIME4J parsing time, 10% of MIME4J memory allocation (for the header parsing use case):

## After

Disappeared!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org
[GitHub] [james-project] chibenwa merged pull request #505: [PERFORMANCE] A collection of minor performance enhancements
Posted by GitBox <gi...@apache.org>.
chibenwa merged pull request #505:
URL: https://github.com/apache/james-project/pull/505
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org
[GitHub] [james-project] rouazana commented on a change in pull request #505: [PERFORMANCE] A collection of minor performance enhancements
Posted by GitBox <gi...@apache.org>.
rouazana commented on a change in pull request #505:
URL: https://github.com/apache/james-project/pull/505#discussion_r655989076
##########
File path: server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/draft/model/message/view/MessageViewFactory.java
##########
@@ -80,6 +80,9 @@ static void assertOneMessageId(Collection<MessageResult> messageResults) {
}
private static boolean hasOnlyOneMessageId(Collection<MessageResult> messageResults) {
+ if (messageResults.size() <= 1) {
Review comment:
you mean `if (messageResults.size() == 1)`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org
[GitHub] [james-project] chibenwa commented on pull request #505: [PERFORMANCE] A collection of minor performance enhancements
Posted by GitBox <gi...@apache.org>.
chibenwa commented on pull request #505:
URL: https://github.com/apache/james-project/pull/505#issuecomment-865443260
https://github.com/apache/james-project/pull/505/commits/0cd70cfde85f12f8cd9b7bbef54cc7215b9337ba
## Before
0.2% of CPU, 0.34% of memory allocation.

## After
No traces :-)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org
[GitHub] [james-project] chibenwa commented on pull request #505: [PERFORMANCE] A collection of minor performance enhancements
Posted by GitBox <gi...@apache.org>.
chibenwa commented on pull request #505:
URL: https://github.com/apache/james-project/pull/505#issuecomment-865440094
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org
[GitHub] [james-project] chibenwa commented on pull request #505: [PERFORMANCE] A collection of minor performance enhancements
Posted by GitBox <gi...@apache.org>.
chibenwa commented on pull request #505:
URL: https://github.com/apache/james-project/pull/505#issuecomment-865440890
https://github.com/apache/james-project/pull/505/commits/61c63418dfcff2f6003dda0b7ac26d096c2bd684
## Before

We can clearly see getUserFlags is called twice.
## After
Not anmore.

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org
[GitHub] [james-project] chibenwa commented on pull request #505: [PERFORMANCE] A collection of minor performance enhancements
Posted by GitBox <gi...@apache.org>.
chibenwa commented on pull request #505:
URL: https://github.com/apache/james-project/pull/505#issuecomment-865442378
https://github.com/apache/james-project/pull/505/commits/9d113fb78f543e8f7beb312a8f5462093407ad80
## Before

Takes 0.2 % of CPU and 0.5% of memory allocation.
## After

Slimmer it now takes just 0.14% of CPU and only 0.25% of memory... Not game changer but nice to take.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org
[GitHub] [james-project] chibenwa commented on pull request #505: [PERFORMANCE] A collection of minor performance enhancements
Posted by GitBox <gi...@apache.org>.
chibenwa commented on pull request #505:
URL: https://github.com/apache/james-project/pull/505#issuecomment-866840298
Just squashed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org