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.

logsInMemory needs a more appropriate deque

See original GitHub issue

Your question

LogManagerImpl#logsInMemory needs a more appropriate deque, now the remove range operation cause data movement

Your scenes

Your advice

Environment

  • SOFAJRaft version:
  • JVM version (e.g. java -version):
  • OS version (e.g. uname -a):
  • Maven version:
  • IDE version:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
fengjiachuncommented, Nov 8, 2019

The motivation is optimizing performance? Or it leads to bug?

for perf

0reactions
killme2008commented, Dec 25, 2019

I am working on this feature.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deque Memory Management - Game Developer
The usual approach to memory management when developing an STL style Deque is often not very suitable for the demands of game development....
Read more >
What the heque is going on with the memory overhead of std ...
I'm thinking I should switch my std::queue underlying containers to std::vector as there is no overhead (given that the appropriate size is ...
Read more >
std::deque - cppreference.com
std::deque (double-ended queue) is an indexed sequence container that allows fast insertion and deletion at both its beginning and its end.
Read more >
Python: deque vs. list - DEV Community ‍ ‍
A deque is short for a double-ended queue, which is why it's called so. ... which is why such lists take up more...
Read more >
Python's deque: Implement Efficient Queues and Stacks
In this step-by-step tutorial, you'll learn about Python's deque and how to use it to perform efficient pop and append operations on both...
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