Benefits of POF

I saw the benefits of POF several times in the past.

One of our teams is the use of large arrays of Int and asked if POF would help. I said "I'm sure it will.

We just did a test and the answer is not "a lot".

We save a random size of array Int 30 x 20 (ie. 600). We are int keying.

When I add 30,000 of them the advantage of cut POF is 162 G 158 G vs. (I'm a GC first and then using JConsole to take this reading).

I guess that's because the Java serialization is good enough to store arrays of Int (or even that with POF is turned off, it uses ExternalizableLite under the covers for arrays of Int).

POF is also very effective to store small amendments (e.g. 1-> 256) and we are deliberately force out of that comfort zone. (choosing a range of 0-> 100 K).

Who has to make sense to people who know these internals?

Best, Andrew.

------

public class PofSizingTest {}

Public Shared Sub main (String [] args) throws Exception {}

long startTime = System.currentTimeMillis ();
int x = 20;
int y = 30;
int numberOfArrays = 30000;
NamedCache namedCache = CacheFactory.getCache ("POF_TEST_DOUBLE_ARR");
for (int n = 0; n < numberOfArrays; n ++) {}
profiles of double [] [] = new double [y] [x];
for (int i = 0; i < there; i ++) {}
for (int j = 0; j < x; j ++) {}
profiles [i] [j] = (Math.Random () * 100000);
}
}
namedCache.put(n,profiles);
}
System.out.println ("Time taken to" + numberOfArrays + "values =" + (System.currentTimeMillis () - startTime));
}
}

In this case, you store a table of double primitive, which should be about the same size for POF and Java serialization.

Classes tend to be much smaller. Scattered structures tend to be much smaller. POF stores duplicates by using the same format of 8 bytes as Java serialization, however.

For more information, see "The PIF - POF Binary Format" (part of the documentation of 3.5 to http://download.oracle.com/docs/cd/E14526_01/index.htm):

http://download.Oracle.com/docs/CD/E14526_01/CoH.350/e14509/apppifpof.htm#sthref782

Peace,

Cameron Purdy | The Oracle coherence
http://coherence.Oracle.com/

Tags: Fusion Middleware

Similar Questions

  • POF serialization of a collection

    I'm trying pof serialize a std::vector of objects and send it via expand cache where I should be able to recover my vector in a form of collection of java. What is the best way to do it. C++ STL consistency is nice!

    Published by: dadashy on October 15, 2010 01:39

    Hi Dadashy,

    Coherence C++ includes no direct support for POF serialize a std::vector, but it is possible to get what you want without too much effort. The fist thing you should do is to ensure that there are POF serializers for the type of element in the vector T, before to worry about serialization of a 'collection' of Ts, see http://download.oracle.com/docs/cd/E15357_01/coh.360/e15726/cpp_integrationobj.htm#BAJJEDIE for more information about how to perform this step.

    Once you have made your POF Ts serializable, you can realize that you could choose to apply the same technique to make std::vector POF serializable. Although this approach might work, she would not reach your desired effect, which would act as a collection of Java on the other side. To do this, you have a few options. By far the simplest option is to browse your std::vector and copy items in one of the various implementations of collection that are provided with consistent C++, coherence::util:ArrayList aka CircularArrayList would be a good candidate. A more complex, but potentially more effective alternative would be to write a std::vector wrapper that implements the coherence::util:Collection or coherence::util:List. The later approach is certainly more complex, but if your items T extend coherence::lang:Object or use the coherence::lang:Managed, then it offers performance benefits over simply copy the content in an ArrayList.

    With two approaches you will end up with an object that implements the interface coherence::util:Collection, and this can be written to the stream via PofWrite::writeCollection POF and materialize on the coast of Java as a java.util.Collection. Obviously, the process must be reversed during deserialization, but both of the above techniques work perfectly for deserialization as well.

    Mark
    The Oracle coherence

  • can you tell me about mozilla aurora, detail, benefits etc.

    I'm the first use of aurora.so can you provide me details about it.
    It may be on the benefits, unlike mozilla firefox etckindly provide details as soon as possible...

    See:

  • Benefits of Snow Leopard?

    I bought a used Macbook Air (2010) for my seven-year-old to use and learn about. The original operating system is Snow Leopard, which is very different from the OS X to which I am accustomed. (I started using Mac at the time of the Mavericks). My Macbook Pro is running El Capitan. My question is: is there significant advantages to Snow Leopard running on the computer the child? Or, is there greater benefits to be had (software, parental control, etc.) if we run the recent and same OS on both machines?

    If we run the recent and even OS X on both machines?

    OS X El Capitan - technical specifications

  • Are there benefits thanks to apple to reach Advisor top-level posts

    I work for a retailer of Verizon and the benefits to get knowledge and experience helping people solve problems, I see even a potential for maybe even get some business out of it. But this is what apple offers to put in the time and helping at this remove from the plate here?

    Scoring, level and gain new privileges

  • Satellite A660 - 11 M: benefits of the update of the Bios

    What are the benefits of the update of the bios. (ive never done)
    Since then I've seen on the forums of toshiba how its so complicated to do.

    So I'm wonering if its worth the practice, what can I expect? What will get better after update?

    THX in advance :)

    Hi mate

    Don t expect anything if you have no problems with your laptop.
    BIOS update is the very delicate process and if you have no problem with the laptop, you shouldn't have to date.

    You know you would need assistance from service provider authorized if something goes wrong with the update of the BIOS.

    Therefore, never change a running system

  • Benefits of increasing Mempry

    My computer has 4 GB of memory and room for one more memory card.  What are the benefits for me by adding another 4 GB memory?

    Thanks to a bouquet.  Uncle Dewey

    Hi Dewey,

    You are the very welcome.

    Better multitasking. Response time faster and less writes data on your HARD drive.

    You don't need to add more memory, if you are happy now.

    I have 16 GB of memory installed on my HP 810-150se Phoenix, as I do memory intensive music and graphics tasks.

    Jaco

  • What are the benefits should the software Intel offers compared to Win zero configuration

    (Satellite M60, Intel 2200BG)
    A few months ago Intel released new software WLAN (a major problem for the security, etc.). Initially, there was a memory leak problem, but he was soon fixed. However, they always seem to be a resource hog: there is the CPU usage in the Task Manager on the cob of 10 to 20% every 5 seconds all the time, also WIFI turned off & off, overall performance is affected - this can be seen for example in the tests of hard drive.

    I noticed that in order to use windows to configure WLAN & then kill two switching processes (iFramework, S32EvMon (?)) eliminates this activity.
    Recently, new Intel drivers are offered by Toshiba also, so I'm about to reinstall them with the option "drivers only".

    Anyone know what are the benefits should the full Intel software offer compared to Windows zero configuration?
    As far as I know, monitor event S32 is supposed to improve coordination Intel WLAN and LAN, working together.

    The new package is about 50MB in size, while the former was 2MB.

    Hi Sammo

    You have already preinstalled new driver? The package is really about 50 MB and Intel PROSet utility.

    I can tell you that offers software Intel the same configuration options of Windows. Maybe Utility Intel PROSet is friendly and kind but designed WLAN Windows settings by using, you can exactly the same.

    If you have more info on the download package and installation please let us know.

  • 1.6 GHz 1.8 GHz vs. benefits of the turbo memory? a/b/g/n vs a/b/g

    Three questions really...

    Is there a significant difference in performance between processors clocked at 1.6 GHz and 1.8 GHz? If so, how is this affecting production of heat/energy.

    What is the advantage of the hd turbo memory cache and it interacts badly with vista?

    Is a comopatible n-network card as the Intel Wireless WiFi Link 4965AGN has significantly lower energy consumption that thinkpad atheros card? (I read this on another forum) Otherwise, I decide that I really have need compatibility n-network because few of these networks exist.

    The difference in speed is minimal between the two processors of the same generation, i.e. Core Duo or Core 2 Duo. The turbo memory benefits are realized only when you do not have a lot of ram for Vista, that is 1 gig or something. If you install 3 GB of ram (market now good enough right) the gain in speed is minimal with Turbo memory is minimal, while your 3 concert can still run under XP not the same for the Intel turbo memory. You can also get half of the allocation of memory Intel turbo using the functionality of Windows Readyboost in Vista, obtained using a fast SD card or a USB key. Wireless cards with doubled the speed of the g version N function, if you much sharing of large files wireless then of course it is useful, but if just use you it for surfing the net so I think 54 Mbps is fast enough.

  • Pavilian HPE: Benefits of the execution of a judgment?

    I heard that it is good to close (and not only a reboot) your computer every few days or so just to clear the registers and erase the memory and other things that could be useful to the operation and maintenance of your computer.

    I realize there are many other things of maintenance that must be done on a regular basis that is, clean the dust inside the PC, defragmentation (if your system is not automatically do it for you), updated drivers and on and so on.

    But this volume covers the benefits of the execution of every now and then a shutdown of the system.

    The ideas of the experts on this would be appreciated?

    Bdakota8, welcome to the forum.

    I really believe that there are benefits to doing a cold start on a computer; most of them you mentioned.  In fact, I always turned off my computer after each use, regardless of how long I won't use it.  I know that there are several postions different on it, but I've been computing since 1984 and have never seen any negative effect to do.  I have a computer on which I built in 2006 and it still works perfectly when I use it.

    Please click on the Thumbs up button '+' if I helped you and click on "Accept as Solution" If your problem is resolved.

  • benefits of VISA by GPIB

    I want to know the benefits of the VISA by GPIB in labview when we connect our pc to a device that has interface GPIB

    What could be the reason behind the use of the VISA program

    I want at least 5 advantages of visa by GPIB.

    Hello

    1 VISA Write equals a GPIB entry unless the entry VISA returns a VISA Out reference which is much easier to use. You who go to the next function VISA instead of a GPIB cabling address at all. This will make your cleaner blockdiagram.

    2.portability:-VISA supports GPIB, series, Ethernet, USB, PXI, VXI, and PCI. So, with a single piece of code, you can support all the interfaces and the same GPIB controllers from different vendors.

    3 VISA supports aliases. You can assign logical names to resources. Instead of trying to remember the GPIB address in a rack full of instruments, you can reference "DMM", "Scope", etc.

    4. If you program multiple devices communicating on more than one type of bus, it might be easier to use VISA for your entire system.

    5. in the VISA, you must always call viEnableEvent() before being allowed to receive events, it is necessary for the VISA to avoid the race condition to try to wait for events for which the equipment may not be activated.

    6. the control of VISA resources allows you to choose from a list of available resources.

    Enough

  • benefits of on LabVIEW TestStand?

    What are the benefits of on LabVIEW TestStand, why use TestStand? Is LabVIEW alone is sufficient to develop the test sequence?

    TestStand is a SEQUENCER on shelf to create, debug, and run test on the units under test routines.

    LabVIEW is a graphical programming language.

    Essentially, you can write a sequencer customized by using LabVIEW (or other programming languages), but TestStand is already with a lot of flexibility.

    hope this helps,

    Norbert

  • Three laptop computers and benefits

    What are the benefits of having three laptop computers (two panoramas purchased in 2007 and 2009 and a W7 in 2010)?  Since I have access to computers outside my home and at work every day, I use these computers portable "home" to the local library or Starbucks, or at home, for a total of about 10-15 hours per week.  In view of the 'rule' on the purchase of a new computer and also my interest for the loading of black & white oldie films on You Tube, much more quickly than in 15-20 minutes, I'm going to start EXPERIMENTING with one of the three computers laptops etc. 5-7 years, I have now and barely use, IN DESINSTALLANT about half of the 65 PROGRAMS & FEATURES and turning OFF also about 50% of startup items , as well as the Services OF BOOST PERFORMANCE & SPEED and I hope that load much faster films.  Any suggestions will be greatly appreciated.

    Joe

    You should ask AT & T company, your Mobile or cable what they offer. 0.6 MB/s is slow for me. I live on a mountain and only high speed available here is cell. Cell phone is expensive but my speed is great to 21.6 Mbit/s and only because I live near a tower. Distance and movement affects the cell speed. Your best bet is cable.

  • Is it still useful to install SP2 for Vista on 64-bit system? What are the benefits?

    OK, so I have Windows Vista Premium Home Edition on a laptop HP with Service Pack 1 installed. I have disabled the automatic updates of Windows functionality, because there are so many unnecessary and space-hogging updates that I can't be bothered. I've never had a problem with the system or security issues (I use Avast Antivirus among other tools/software as needed) and I've had this phone for almost 2 years now. In the past, whenever I installed a major update, it will eventually create problems that were not there before the update so I'm really hesitant to install SP2. ONLY that I even consider it is because I have problems with Windows Movie Maker and tried to install Windows Live Movie Maker, but it won't let me do that without having installed SP2. To install SP2, I have install all the boring updates I have never installed SP1. so, all this makes me wonder if it's the same penalty to install SP2 in the first place? I can use other video editing software, if necessary, but if someone can tell me what SP2 has or does that SP1 is not, and all the benefits of the installation, I would be better able to make a decision. Any advice? Info?

    Thank you!

    If your happy with SP1 and your AV software with the new version of each exercise supports still SP1 then follow it. Just be aware that Microsoft (and I'm not a Microsoft employee) will give you no support after the data that I posted.

    Comments in plain speak: http://www.testfreaks.com/blog/information/vista-sp1-vs-sp2/

    A bit more technical: http://technet.microsoft.com/en-us/library/dd335036%28WS.10%29.aspx

    JS
    http://www.PAGESTART.com

    Never be afraid to ask. This forum has some of the best people in the world to help.

  • What benefits is the Agere System HDA Modem offer that is not my current program?

    Can you explain what this update is for and that it adds to the computer? I receive an optional for update for Agere System HDA Modem on my HP laptop. Should I download it, or do I really need? I also wanted to know what would offer the benefits of downloading.

    You should never use MSUpdate for drivers, especially a laptop. Reconfigure MSupdate for Important updates ONLY.

    If you need drivers for your laptop get you from HP, sepecific to your model

Maybe you are looking for

  • Z5C model unlock Non-responsive screen

    I recently bought the Z5C and chose the model unlock instead of a PIN.  Although top - slide the unlock screen to get to the model screen works perfectly, it takes 3-4 attempts to get the configuration screen to respond, and sometimes he starts to dr

  • Wireless HP 6500 not print / scan to Macbook

    There are several discussions about Mac and 6500's. I tried everything I think, but who knows if the order is important? I rubbed, reset, restarted and even cried a little looking for the magic to get a 6500 wireless print and scan from / to a MacBoo

  • I need a name and address to which I can send the letter of complaint

    I need a name and address to which I can send the letter of complaint.  I tried to deal with the customer service and with the case manager and case number assigned.  Logen and manulipated.  When I asked to speak to the supervisor, I was told that th

  • How to reset the display of files by default when I opened the Windows Photo Gallery

    When I opened the Gallery of photos, I had a view similar to the view of the Explorer window with all my files that I've organized by date and name. I must have hit a sequence of keys, and now I can not the same rear view.  The closest I can get is a

  • Cannot delete all Adobe cloud applications

    2 problems:-J' I throw most of my applications in the sandbox - and removed adobe their... (unfortunately I've just seen a tutorial that warned not not to do...)-There's stil some applications (like the creative cloud app) which I can't uninstall. If