Giter VIP home page Giter VIP logo

Comments (8)

peter-lawrey avatar peter-lawrey commented on July 19, 2024

I agree that when iterating only one key and or value should exist at a
time. We should be able to fix this. Also iterating keys shouldn't create a
value and visa versa.
On 22/06/2014 12:40 AM, "RuedigerMoeller" [email protected] wrote:

I had a look and it seems internally complete temporary copies are built
up. Unfortunately my map contains 5 million entries.

Is there any way to iterate values or keys of a SharedHashMap in a way
next entry is computed only whenever "next" is called on the iterator ?. NP
with non-standard API as the JDK collection's idea of requiring a
keyset/valueset to offer an iterator is not exactly a good design
performance wise.

I would try to add this myself, however I am missing kind of a 20 line
overview how the basic mechanics work (segments, entries, entrysize, free
mem managements, compaction).


Reply to this email directly or view it on GitHub
#34.

from hugecollections-old.

RobAustin avatar RobAustin commented on July 19, 2024

We have just raised the following JIRA, to address this issue.

higherfrequencytrading.atlassian.net/browse/HCOLL-110

On 22 Jun 2014, at 00:40, RuedigerMoeller [email protected] wrote:

I had a look and it seems internally complete temporary copies are built up. Unfortunately my map contains 5 million entries.

Is there any way to iterate values or keys of a SharedHashMap in a way next entry is computed only whenever "next" is called on the iterator ?. NP with non-standard API as the JDK collection's idea of requiring a keyset/valueset to offer an iterator is not exactly a good design performance wise.

I would try to add this myself, however I am missing kind of a 20 line overview how the basic mechanics work (segments, entries, entrysize, free mem managements, compaction).


Reply to this email directly or view it on GitHub.

from hugecollections-old.

RobAustin avatar RobAustin commented on July 19, 2024

I would try to add this myself, however I am missing kind of a 20 line
overview how the basic mechanics work (segments, entries, entrysize, free
mem managements, compaction).

@RuedigerMoeller if you are keen to make this change and are willing to contribute it back via a pull request, let me know. We could cover your questions on SHM via a one-one video conference ( say http://www.gotomeeting.com ), let me known if you would like me to arrange this and if so, what time/date best suits you London,UK working hours are best for me.

Alternatively we will fix this issue, possibly in the next few months.

from hugecollections-old.

RuedigerMoeller avatar RuedigerMoeller commented on July 19, 2024

Fine, I'll try to implement.
@BoundedBuffer I'll try to contact you via Google Hangout. I am located at Frankfurt. I don't think the security infrastructure @ office is prepared to route video streaming :-), Also no webcam+mike installed on dev machines.
Alternatively I'll ask stuff right in this issue, as i am frequently working from home/at night if this is ok for you.

from hugecollections-old.

RobAustin avatar RobAustin commented on July 19, 2024

Sure - google hangouts if fine. I'm not on line at the moment ( today ) , but I am usually free in the evenings.

You will have access to the jira in this thread, it's preferable if we added comments / questions to the jira, I am assuming that you will issue a pull request once fixed, if so please add the jira code HCOLL-110 to the start of the comments in the checkin.

Rob

On 22 Jun 2014, at 09:41, RuedigerMoeller [email protected] wrote:

Fine, I'll try to implement.
@BoundedBuffer I'll try to contact you via Google Hangout. I am located at Frankfurt. I don't think the security infrastructure @ office is prepared to route video streaming :-), Also no webcam+mike installed on default fev machines.
Alternatively I'll ask stuff right in this issue, as i am frequently working from home/at night if this is ok for you.


Reply to this email directly or view it on GitHub.

from hugecollections-old.

peter-lawrey avatar peter-lawrey commented on July 19, 2024

I will be in Frankfurt this week. Would you like to meet after work?
On 22/06/2014 9:41 AM, "RuedigerMoeller" [email protected] wrote:

Fine, I'll try to implement.
@BoundedBuffer https://github.com/BoundedBuffer I'll try to contact you
via Google Hangout. I am located at Frankfurt. I don't think the security
infrastructure @ office is prepared to route video streaming :-), Also no
webcam+mike installed on default fev machines.
Alternatively I'll ask stuff right in this issue, as i am frequently
working from home/at night if this is ok for you.


Reply to this email directly or view it on GitHub
#34 (comment)
.

from hugecollections-old.

RuedigerMoeller avatar RuedigerMoeller commented on July 19, 2024

Now that's a good idea :)
Let's move to mail to figure out details: i am at gmail dot com moru0011
-ruediger

from hugecollections-old.

RuedigerMoeller avatar RuedigerMoeller commented on July 19, 2024

I'll close this, as with correct configurations (use smallish segments), de/encoding dominates runtime. So iteration is a secondary issue. Iteration is problematic once you have big segments.

from hugecollections-old.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.