Abrupt, loss in performance.

Hi all.
I just found that doing certain database work like data normalization is far faster in java than Sybase.
Stats I have recorded:
Records                    | Sybase  | Java
less than 30,000 records:  | 2000R/S | 3000R/S
less than 800,000 records: | 2.5R/S ; | +2500R/S
more than 800,000 records: | ?       | 25R/S
public void process(){
UniqueList<Person> persons = new UniqueList<Person>();
//Create other unique lists for other tables.
while(log.next()){
cleaner.clean(log.getLine());
Record record = new Record(cleaner.getCleanedData());
record.setPersonsIDKey(persons.add(record.getPerson()));
//set other IDKeys for other tables
WhareHouse.storeRecord(record);
public class UniqueList<Unique>{
  int id=0;
  private HashMap<Unique,Integer> list = null;
  public UniqueList(){
    list = new HashMap<Unique,Integer>();
  public int add(Unique value){
    if(!list.containsValue(value)){
      listID.put(value,id);
      return id++;
    }else{
      return -1 * list.get(value).intValue();
} I have 2 questions to ask but let me ask the simpler of the 2 first.
*<Question 1>*
This is regarding Sets.
Why is it that Sets use both equals and hashCode to determine uniqueness, even when the documentation says
(o==null ? e==null : o.equals(e)). *</Question 1>*

kajbj wrote:
Execute it with gc printing so that you can see how often the gc is executing and for how long it's executing. It still sounds gc related.It looks that way.
Here are 3 sections (Begining, Middle, point of performance loss) of the log file from
java -XX:+PrintGC -Xloggc:log.log Normalizer------------------
0.075: [GC 896K->183K(5056K), 0.0017151 secs]
0.108: [GC 1079K->186K(5056K), 0.0005844 secs]
0.109: [GC 1082K->187K(5056K), 0.0003445 secs]
0.134: [GC 1083K->190K(5056K), 0.0002221 secs]
0.130: [GC 1086K->191K(5056K), 0.0001363 secs]
0.152: [GC 1087K->195K(5056K), 0.0002240 secs]
0.145: [GC 1091K->197K(5056K), 0.0001318 secs]
0.165: [GC 1093K->200K(5056K), 0.0002152 secs]
0.159: [GC 1096K->201K(5056K), 0.0001563 secs]
0.179: [GC 1097K->203K(5056K), 0.0002125 secs]
171.522: [GC 55672K->52095K(56024K), 0.0005632 secs]
171.533: [GC 55679K->52103K(56024K), 0.0004544 secs]
171.544: [GC 55687K->52111K(56024K), 0.0004587 secs]
171.554: [GC 55695K->52114K(56024K), 0.0004445 secs]
171.609: [Full GC 52150K->52150K(56024K), 0.1150563 secs]
171.736: [GC 56151K->52158K(65088K), 0.0046462 secs]
171.752: [GC 56254K->52165K(65088K), 0.0004931 secs]
171.778: [GC 56261K->52172K(65088K), 0.0004828 secs]
171.790: [GC 56268K->52181K(65088K), 0.0004062 secs]
171.802: [GC 56277K->52182K(65088K), 0.0003858 secs]
220.279: [GC 64706K->60616K(65088K), 0.0006192 secs]
220.292: [GC 64712K->60623K(65088K), 0.0005213 secs]
220.304: [GC 64719K->60632K(65088K), 0.0005268 secs]
220.317: [GC 64728K->60638K(65088K), -0.0130646 secs]
220.329: [GC 64734K->60649K(65088K), 0.0006524 secs]
220.329: [Full GC 64745K->60655K(65088K), 0.1366094 secs]
220.481: [Full GC 65087K->60661K(65088K), 0.1351008 secs]
220.645: [Full GC 65087K->60668K(65088K), 0.1205051 secs]
220.794: [Full GC 65087K->60663K(65088K), 0.1209526 secs]
220.930: [Full GC 65087K->60664K(65088K), 0.1348696 secs]
And from here it only does Full GC which takes about a tenth of a second

Similar Messages

  • Upgraded from Linksys WRT54GX4 to WRT600N, severe loss of performance!

    I have a WRT54GX4 with a WPC54GX4 adapter card. I enjoyed a rock solid 240Mbps signal thru out my apartment.
    This weekend I upgraded to a WRT600N with WPC600N adapter card. I mainly wanted the Gigabit wired network for my desktops PC's but was hoping for even better performance with my laptops. If I sit at my desk where the router is located, I get around 180 Mpbs. If I move to the next room, the signal drops to about 27 - 81 mbps. What is up with that? I really didn't expect a loss in performance!
    One laptop still has a 54 adapter card and that signal is great, steady everywhere in the apartment. But the laptop with the WPC600N sucks. I can't help but think that I just don't have something configured right.
    Any help would be appreciated.

    Try changing the wireless channel on the router & see if WPC600N connects or not ...

  • Passing a large 3D-array to a sub vi and back causes huge loss of performance

    I am passing a large 3D-Array of type I16 to a sub-vi node of same type, and back to the main VI. For test purposes I have removed all processing in between. Still, the sub-vi call requires many ms to s, depending on array size. I was under the impression that variables are passed to sub-VIs by reference. Is this incorrect? can it be fixed?
    Johannes

    Hi Johannes,
    (There may be exceptions but) No, variables are not passed and returned by reference.
    "A fix" may be possible by restructuring your app such that the large 3d array never gets moved around. This can be done by using what I call an action engine. It uses a variation of the LV2 global to store the large array ONE TIME in a shift register. After that, all other operations are performed "in-place".
    This technique has allowed me to process very large data sets "on-the-fly".
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Serious overall loss of performance since cc 2014

    Hi guys
    While the last version of CC was working flawlessly on my mac, since the 2014 update its not the case anymore.
    I really lost in performance with the "last" version and CC 2014 is at best really laggy and unstable when i use it.
    I've ran multiple cleaner software, uninstalled and reinstalled, checked a lot of forums yet no answer for this unwanted lost of performance ...
    Any kind of hint would be great. Thanks.

    Hello Crispe,
    Could you please share with us the test file @ "[email protected]" so that we can reproduce the problem at our end? Please be assured that your test file would solely be used for reproducing the issue and won't be shared elsewhere.
    Please include the link (CC 2014 - another noticeable degradation in performance) in the mail you send.
    Regards,
    Dhirendra

  • CS3 loss of performance

    Hi all, my PS CS3 is having a lot of problems with stalling, running really slowly etc. I have Performance set up as shown in the attached screenshot and the C drive has 152Gb or 26% available. Can anyone think of a reason? I am running currently with 14% of the CPU being used and 77% of the 6gb RAM in use but the issues do not seem to relate to how much RAM is in use.
    Any thoguhts VERY much appreciated.
    Thanks,
    Phil

    Try setting your operating system virtual memory to a custom size. I have mine set to Initial and max size at 12286 MB. Reboot.
    Your anti-virus may be scanning your work as you go. I have mine set not to scan files in progress.
    Your defrag is running while you are working?
    Try defragging your hard drive (ya some people say you don't have to but you will be surprised)
    Also if you have 2 internal drives put the scratch disk on the second drive.
    Too many other software running in the background. Go into MSconfig and turn off any software you don't need running but can turn on manually. Reboot if you changed anything.
    For 6 gigs of RAM I see it is showing lower. you either have a lot of stuff running in the background or MSconfig is not correct.
    When you are in MSconfig, go to the boot tab, click on Advance options, Ensure that there is no check mark in Maximum memory and it reads zero. This will allow your system to use all 6 gigs of RAM. Reboot if changes are made.

  • Abrupt loss of power, no low battery warning

    a familiar story, but haven't been able to dig up a solid solution in past discussions--so perhaps a fresh suggestion...? (thanks in advance!)
    okay, so one moment the battery indicator shows 45 minutes remaining; the next, my tibook puts itself to sleep or shuts down entirely. and when i plug it back in--yep, the battery indicator shows a 0% charge.
    this is actually my 2nd battery for this tibook, a replacement i purchased from apple after the 1st died as expected. for the life of that 1st battery, i would always see a low battery warning before shut-down, and the charge indicator generally was on target. but as for the current battery, even though it's relatively new (maybe just over a year old, 193 cycles) and still holds a decent charge (lasts a couple of hours), i can't even recall the last time i saw that warning message before the computer went dark on me. i tend to stay plugged in, but when running on battery power the charge indicator seems pretty accurate--unless i dare to get anywhere near depletion as described above, and then suddenly it's way off the mark and the screen is dark.
    i've tried messing with power settings, follow tips for maintaining battery life, etc.--no luck. surely the battery can't be dead already!
    ...though that would figure since i can't return it anymore... and since my extended applecare plan expired a week ago, maybe now my (replacement) adapter will explode and almost burn the house down like the 1st one did. sheesh.
    anyways, big-time thanks for any insight or suggestions, much appreciated.
    PowerBook G4 (ti)   Mac OS X (10.3.9)  

    maybe the power mangement unit on your logic board is broken?
    The more people experience the same symptoms, the more I doubt it.
    did you do all the resets pram etc?
    Yes, of course. To no effect.
    While I am trying the "trick" described above by SuperSizeIt (discharge until forced sleep + sleep for another whole day + recharge to maximum), please: everybody go to SystemProfiler and check their capacity. Is it going down from charge cycle to charge cycle, as in my case?
    Initially I had: 4200 mAh
    After just six cycles in three weeks: 3176 mAh
    So the drop is more than ~170 mAh/cycle. I would consider a few mAh normal, but certainly not this much!
    Now, I would like to know whether this symptom is just part of the problem described in this thread, or an additional one.
    Powerbook G4 400 Mhz   Mac OS X (10.4.4)  

  • T500 performanc​e loss and restart issue after low battery shutdown

    Hi,
    Some days ago I experienced a significant loss in performance of my T500. Unfortunately it seems to be a continuous loss and the games I play, e.g. empire total war that did run ok before are nearly unplayable at the moment.
    Additionally, when the computer shuts down due to low battery, it no longer manages to resume windows but always crashs during reboot (black screen and hard disk symbol is moving, no other activity for 10 minutes)
    I am working with the standard vista installation and installed all automatic updates, but also every time when I shutdown the computer, no matter how long it has been running (even after 1 minute and after a rebooting 3 minutes ago), the red shutdown symbol in start shows that an update needs to be installed.
    any ideas?
    Many thanks in advance !
    Message Edited by Walky on 06-18-2009 09:39 PM
    Message Edited by Walky on 06-18-2009 09:41 PM

    Well, the problem, seem's to have reoccured: Battery ran out (even the indicator leds on the side didn't show any life), Time reset  to 1.1.2001, again some rebooting and setting the time again...
    Is this a sign of a degrading battery health status?
    It looks like reseting the SMC didn't help after all.

  • My MacBook Pro has become unbearably slow. What can I do to get it back to its normal (peak) performance?

    When I originally purchased my MacBook Pro a few years ago, it was blazing fast. Since then the reaction time of the CPU has gotten progressively worse to the point where the laptop is virtually unusable. Windows are laggy and slow to load. Apps will become unresponsive for apparently no reason. Nothing seems to make it better. I cannot pick out a specific time or event that may have acted as a catalyst for this loss in performance. Any help will be much appreciated.
    Thanks,
    Adrian

    Hello, I'm having a problem with my mac's speed as well, though I don't think it is memory that's causing it.
    It's brand new, late 2011 , has had os x lion from the get go. currently have version 10.7.2
    Free space 474.69 GB
    free RAM 1.65 GB
    It takes about 10 mintues from turning on to get to my desktop screen, and the little pinwheel comes up constantly when trying to open an app.  typing lags for 5-6 seconds when i type one letter, and the internet alternates from moderate speed to showing lots of pinwheel spinning.  It also takes 3-5 minutes to turn off when before it used to be seconds.  When it falls 'asleep', it often doesn't wake up, at least not for a few minutes.
    I tried safe boot, but i didn't see any difference in speed when i restarted.
    I tried resetting the PRAM, no difference
    I then tried command R for the disk utility, and i believe i clicked on repair permissions for the hard drive (the one that said macintosh Hd);
    it ended up displaying "open error messages"- that mentioned AirPort Utility and various font names. Despite saying the the repair had less than a minute, it stayed on this screen for a good 30-40 min until i was fed up and shut it down
    I really don't know what else could have done this; the only other thing i downloaded was realplayer sp, but I got rid of it all and everything i downloaded with it. I don't have any huge programs like photoshop either. I don't have any other users created aside from just me.
    please help.

  • Performance between two partitionned tables with different structure

    Hi,
    I would like if there is a difference between two partitionned tables with different structure in term of performance (access, query, insertions, updates ).
    I explain myself in detail :
    I have a table that stores one value every 10 minutes in a day (so we have 144 values (24*6) in the whole day), with the corresponding id.
    Here is the structure :
    | Table T1 |
    + id PK |
    + date PK |
    + sample1 |
    + sample2 |
    + ... |
    + sample144 |
    The table is partionned on the column date, with a partionned every months. The primary key is based on the columns (id, date).
    There is an additionnal index on the column (id) (is it useful ?).
    I would like to know if it is better to have a table with just (id, date, value) , so for one row in the first table we'll have 144 rows in the future? table. The partition will already be on the columns (id, date) with the index associated.
    What are the gains or loss in performance with this new structure ( access, DMLs , storage ) ?
    I discuss with the Java developers and they say it is simpler to manage in their code.
    Oracle version : Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    Thanks & Regards
    From France
    Oliver
    Edited by: 998239 on 5 avr. 2013 01:59

    I mean storage in tablespaces and datafiles on disk.
    Can you justify please and give me concrete arguments why the two structures are equivalent ( except inserting data in T(id, date,value))
    because i have to make a report.i didnt say any thing like
    two structures are equivalent ( except inserting data in T(id, date,value)i said
    About structure : TABLE1(id, date, value) is better than TABLE1(id, date, sample1, .... sample144)because
    1) oracle has restriction for numbers of column. Ok you can have 144 columns now but for future if you must have more than 1000 columns , what will you do?
    2) Restrictions on Table Compression (Table compression is not supported for tables with more than 255 columns.)
    3) store same type values on diffrent columns is bad practise
    http://docs.oracle.com/cd/B28359_01/server.111/b28318/schema.htm#i4383
    i remember i seen Toms article about this but now i cant find it sorry ((( if i found i will post here

  • Bad Font-Measuring Performance under Windows 8.1

    Why does the following little loop (in c#) perform so bad using current version of WPF (.NET 4.5.2) if i change the font-family from "Segoe UI" to "Arial" (or something else...tried "Times New Roman" and "Courier New"
    - Same problem)?
    var tb = new TextBlock {Text = "Testtext", FontFamily = new FontFamily("Arial")};
    for(int i = 0; i < 100000; i++)
    tb.InvalidateMeasure();
    tb.Measure(new Size(double.MaxValue, double.MaxValue));
    With font-family set to Arial this block of code takes about 7.6s on my machine. Font-family set to "Segoe UI" takes about 1.9s. Why do (most) other fonts than Segoe UI perform so bad during measurement? Is there any tweak around, that does avoid
    this enormous loss in performance?
    As i found found out, "Tahoma", "Lucida Sans" and "Microsoft Sans Serif" are being measured really fast, also. Is this some "System-internal font"-thing?
    Yes, i know, this is really constructed and broken down to a minimal reproducable example. The whole component is a custom datagrid with complex ui- and data-virtualization - much too big to post here. If i set the font of my
    grid to, let's say "Arial", the scrolling-performance gets really bad. Using Visual Studio's Profiler i tracked the problem down to the measurement of my single grid-cells, which basically measure single textblocks and so i wrote the little test-code
    above. Please keep in mind: My problem is NOT, that the code above is slow. (I know, this loop is totally senseless...it's for demonstration purposes only) My problem IS, that changing the font impacts measurement in such an enormous amount...
    What is the difference between fonts like "Segoe UI", "Tahoma", "Lucida Sans" or "Microsoft Sans Serif" and fonts like "Arial", "Times New Roman" or "Courier New" that causes this huge
    impact in measurement?
    Btw.: This problem not only arises within my own grid component, it can also be reproduced with WPF's internal datagrid. Scrolling performance degrades dramatically when using "Arial" as the font-family.

    Hi Max
    I realise that WPF doesn't use Win32, but I suspected something similar (i.e. the font is being loaded and unloaded everytime a measure takes place rather than using a cached font). I just looked up TextBlock in ILSpy and can see a MeasureOverride method
    which does quite a lot of work with the font before using it to measure text and then discards all of this information when it's finished. That's obviously where the bottleneck is. I don't program in WPF so I have no idea how to fix it.
    protected sealed override Size MeasureOverride(Size constraint)
    this.VerifyReentrancy();
    this._textBlockCache = null;
    this.EnsureTextBlockCache();
    Follow the path of EnsureTextBlockCache() to see how much information is being processed and then dumped every time a measure operation is processed.
    Mick Doherty
    http://dotnetrix.co.uk
    http://glassui.codeplex.com

  • Mis-matched ram sizes (512mb and 1 gig) effect on performance...

    Is my MacBook performance taking a hit because I have unequal values of RAM?

    Any loss in performance is more than made up by increasing the amount of Ram anyway. You're not taking a hit right now, you're going a ton faster. Matched pairs may provide 5% performance increase, but if that holds anyone back from increasing their ram level with a mismatched set, then they need to rethink what ram does for a computer. I have 1.25 in my mini, because 512 wasn't enough and 2gb was too expensive right on the heels of the computer purchase itself. You will not miss the performance of a matched set.

  • BT Infinity Data Extension Kit Performance

    Hi,
    I am due to get BT Infinity installed and I anticipate I will need about 20m of the Data Extension Kit supplied during installation.  Does use of this kit make any difference to the download\upload performance?  I would be keen to hear of performance of people that use this kit.
    Many thanks,
    Scott

    Performance will not degrade enough for you to notice, i have 3 20m extensions to 3 pc's across the house, all of them report 35mb download speeds without any loss of performance.
    Using a Draytek Vigor 2820 router with the infinity modem going straight into it, i don't use the BT Homehub.
    The extension is just a standard cat5 cable.
    Good luck

  • Performance deteriorates with archivelog mode

    hi,
    i want to implement an incremental backup procedure for a 9i database, but the database is in noarchivelog mode.
    switching to archivelog mode results in a considerable loss of performance.
    is there anything that can be done to either make incremental backups in it's current state, or speed up performance once it is in archivelog mode?
    thanks
    santosh sewlal

    You will be able to get a lot of information about all books in this link :
    http://otn.oracle.com/pls/db92/db92.docindex?remark=homepage
    [email protected]
    Joel P�rez

  • Performance with 533MHz memory modules

    Anybody knows if the loss of performance is noticeable when replacing 667MHz memory modules by 533MHz modules?
    Considering that the two configurations are paired.
    My concern is the video performance using lower frequency memories. The video performance of the Mac mini is already terrible. Could it become worse?
    Best regards!

    In fact the video controller of the Mac mini is not that bad.
    I have installed the game Civilization 4 for Mac and it is almost impossible to play because it is really slow. I removed the game and installed a PC version using Boot Camp and voilá! It runs perfectly! In the same machine!
    Most of the time the problem is not the hardware...

  • 280x x2-x3 performance drops

    my system is i7 4770k, giga z87-hd3, 16gb ram, win 7 x64 and msi gaming 280x
    Some time ago i saw, what i have big performance drops time by time after loading new levels in game, or reloading save, or just alt-tab in windows and comeback in game (game not important - it can happy in any 3d game). Its happen randomly and can be fixed with just another loading, or alt-tab in win and comeback in 3d game. Other words - every time in game, after im switch to 2D and back in 3D im have chance of very slow mode or all can be again work as it should. Its not deadly but annoying
    Im monithor this by GPU-Z and afterburner - and im not saw no any drops of clock of gpu or gpu loading. No any themeprature problem (all stay cool). No any problems with free memory or something. Im also chek in GPU-Z when game runing in - PICE mode is stay 16x 3.0 both in "normal" and "slow" mode.
    Not sure its just two "mode" - subjectivly, it can be "normal-fast as it should", "slowly then it should" and "slow as hell"
    one thing im remember - several months ago on this forum i requested and received new bios for my 280x (fixed high vcom temperature issue). Im not sure, but maybe this random performance start after this bios. MAybe it have new bios? Or any help how i can fix this problems. thanks.

    Quote from: Nichrome on 13-July-14, 19:07:12
    Gaming App - it's MSI's software. Unless your graphics card is more of "standard" rather than Gaming edition?
    If possible, try your card in different computer and see if there are loss of performance too.
    Also, contact Gigabyte asking for newest BIOS for your board.
    And make vBIOS request here for your GPU, providing Serial Number (you can dismiss last 3 characters) and copy of current vBIOS (use GPU-Z to make copy, upload it to some file hosting service and give a link here).
    Im tryed gaming apps and afterburner - not effect, of curse. 
    My bios is up to date but my motherboard have a bug with random BSODs. This bsods very rare - about 1 in the week and absolutly random, so i cant show this problem in service center of shop for immidatly replacing.
    Im dont sure this perfromance problem from motherboard as BSOD too. But it possible. 

Maybe you are looking for

  • ..is not abstract and does not override abstract method..

    Hello, I've been creating a GUI from scratch, up to now, i have managed to successfully compile the code which forms the window, and a JMenu bar. I now need to add buttons, and for this i need to use an ActionListener, but when i put "implements Acti

  • WBS cost to be settle to Asset

    Hi Frds, I have one requirement regarding some asset work is under construction against the project.If work is under construction all cost is booking to project gl(we are using only 4 project gl,500000-labour,500001-material,500002-subcon and 500003-

  • Editing blog posts: inserting pictures / attaching files doesn't work

    I like the blog-editor in Leopard server. But since a few weeks, it has become impossible to add pictures or to attach files to my posts. Everytime I try to do this I'll get the message: "The file you selected is too large (maximum file size is %i By

  • TS5181 The iTunes Radio icon does not apear on the music app on my iPhone

    After updating the software on the iPhone I still can't find the iTunes Radio icon on the music app

  • Single Entry Mode behavior

    We are currently testing the single entry mode, and we want to understand more about this model. During the testing, we found the timesheet entry impacts much on the project plan. For example, Supposed the start / end date for the assignment is from