Skip to content

Improve the performance of creating/building a client instance #323

@tdauth

Description

@tdauth

Expected Behavior

Building a client should be a fast operation since I do not expect anything to be done.

Current Behavior

The operation

com.cdancy.bitbucket.rest.BitbucketClient$Builder.build()

seems to be really slow.

Context

My application retrieves data from multiple Bitbucket repositories creating the client multiple times which apparently was the wrong approach since it is for one endpoint only. However, I am able to close the client so to write clean code I create a new client and close it afterwards.

Steps to Reproduce (for bugs)

Create many clients.

Your Environment

Anywhere I guess.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions