question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] Larger Object Pool

See original GitHub issue

Stormpot is going great for my Load Balancer but sometimes during peak usages, the object pool is hitting 1.2B objects. Stormpot uses int so the maximum object pool size is limited to 2B.

Do we have plans to support a larger object pool (greater than 2B) using long?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
hyperxprocommented, Nov 3, 2020

Makes sense. I will open PR soon.

1reaction
chrisvestcommented, Nov 2, 2020

Still surprising the number of objects would get that high, but okay. The setTargetSize can be overloaded to both take int and long arguments. The getTargetSize cannot be overloaded so that would have to get a sibling called something like getTargetSizeAsLong.

I’m still waiting for approval to continue working on this project, so what you could do is make a PR with these changes, and then use that branch internally until I’m able to merge it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Object reuse with ObjectPool in ASP.NET Core - Microsoft Learn
Use object pooling only after collecting performance data using realistic scenarios for your app or library.
Read more >
Object Pool Design Pattern - SourceMaking
The Object Pool lets others "check out" objects from its pool, when those objects are no longer needed by their processes, they are...
Read more >
Object Pool Pattern - Best Practice Software Engineering
The Object Pool lets others "check out" objects from its pool, when those objects are no longer needed by their processes, they are...
Read more >
Object Pool - Game Programming Patterns
When you want a new object, ask the pool for one. It finds an available object, initializes it to “in use”, and returns...
Read more >
Objects pooling for Factories (SOLVED) - Defold Forum
Many users already think that factory component work as object pool. It would be a great feature! 1 Like. Ragnar_Svensson ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found