Skip to content

Conversation

@pandaapo
Copy link
Member

@pandaapo pandaapo commented May 5, 2023

Fixes #3870.

Motivation

When we can estimate the size of Map, specifying the initialization size is better.

Modifications

Specify the initialization size.

Documentation

  • Does this pull request introduce a new feature? no

Copy link
Contributor

@Alonexc Alonexc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@codecov
Copy link

codecov bot commented May 5, 2023

Codecov Report

Merging #3871 (6820b7c) into master (c5b7cf4) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

❗ Current head 6820b7c differs from pull request most recent head 7c50766. Consider uploading reports for the commit 7c50766 to get more accurate results

@@             Coverage Diff              @@
##             master    #3871      +/-   ##
============================================
- Coverage     13.81%   13.81%   -0.01%     
  Complexity     1291     1291              
============================================
  Files           571      571              
  Lines         29090    29091       +1     
  Branches       2841     2840       -1     
============================================
  Hits           4019     4019              
- Misses        24698    24699       +1     
  Partials        373      373              
Impacted Files Coverage Δ
...esh/registry/etcd/service/EtcdRegistryService.java 19.68% <0.00%> (-0.16%) ⬇️
...e/core/protocol/grpc/consumer/ConsumerManager.java 0.00% <0.00%> (ø)
...l/grpc/processor/BatchPublishMessageProcessor.java 0.00% <0.00%> (ø)
...tocol/http/processor/SendSyncMessageProcessor.java 0.00% <0.00%> (ø)
...che/eventmesh/trace/zipkin/ZipkinTraceService.java 56.57% <0.00%> (+1.45%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@mxsm mxsm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM~

Copy link
Contributor

@mroccyen mroccyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mroccyen mroccyen merged commit c65a860 into apache:master May 9, 2023
xuhongjia pushed a commit to Deckers-Ohana/eventmesh that referenced this pull request Mar 13, 2025
[ISSUE apache#3870]Specifying the initial capacity of Map can save resources
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.

[Enhancement] Specifying the initial capacity of Map can save resources

4 participants