HashMap load factor and performance

Hi,
Does anyone know why an increase in the load factor of a HashMap decreases lookup performance?
Furthermore, assuming that 99% of the time you will be reading from
the HashMap and writing(put) a well know amount only 1% of the time.
Should the load factor be .01 to get the best performance?
Perhaps I should use a different data structure? I am trying to
load String name/value pairs in a data structure. The loading usually occurs once, but the data can be reloaded. The data will only be
accessed via get(name). Nothing else matters. I will submit a name and want the value back. Practically, speaking the performance is not even an issue in my application, but I want to be aware of the issues involved and not blindly use the structure. I don't want to study the source. I have searched the web, but did not find anything that clearly deals with these issues. I am hoping someone who has already spent the effort can shed some light.
Thanks,
elisahak

If you read any book on performance, they'll tell you to optimise where you need it. And you work this our through profiling - where you need to optimise might not be where you think you'll need to optimise.
Anyway, assuming that you've determined that your bottleneck will be your hashtable, and you wish to tune it: if you read any book on performance, they'll tell you to measure - if you refactor/redesign/reconfigure because you think it'll be more efficient, and do verify that it is more efficient, then you're wasting your time (no pun intended).
So, I would suggest that you write a method:
timeTypicalUsage(final int initialCapacity, final float loadFactor) {
   ... add loads of stuff
   ... read loads of stuff (maybe do this in a loop 99 times so that
   you reflect your "typical usage".
} Then call this method several times, with various load factors and time each call. If you're using JUnit, it'll automatically time the invocations for you.
Just remember that the first invocations of a method are typically the slowest, as class loaders, JIT, etc. are all only "warming up". And that you should be testing with enough invocations that each test method take at least several seconds, if not tens of seconds, otherwise, other any overhead starts to become significant.

Similar Messages

  • Loading classes and performance

    In most of the cases, when a program requires more than 3 classes from a package, we often write the code as import package.* (e.g. when we need lots of GUI components we often need to import javax.swing.*). But in that package, for example the javax.swing package, it seems that most of the classes from that package are not needed. My question is, If we import each class we need individually, will it improve the performance? Or is it a bad programming style? (import each class individually often needs more than 8 lines of codes or even more!)
    Thanks in advance. Davidson

    Well...when you design your code you will have a very good idea of what classes and what packages you will need to use when you actually write your programs. When you write your program, if you specifically know that you will be using just two classes of a particular package then there is absolutely no point at all in you including statements importing the entire package. But you have to be careful.
    That is the reason why a programmer should spend a lot of time in the design rather than jumping into coding. When you have your design on paper in all details, you will know your program as a whole thoroughly. Then you will get a chance to think about optimization techniques for your code. Of course, including an entire package does no harm to your program but...unless you would be using a lot of classes in a package, be specific because this will improve your final code documentation...any documentation explaining your code for that matter. Besides, there is always a difference between a practise that is OK and a good practise :-)
    Vijay :-)

  • MacBook Pro not loading websites and performing very slow

    LLast couple months my MacBook has begun to slow down and now it does not even load websites. Other applications also run very slowly. Any help? Let me know if you need additional information. Thank you SO much!!!

    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve the problem. But with the aid of the test results, the solution may take a few minutes, instead of hours or days.
    Don't be put off by the complexity of these instructions. The process is much less complicated than the description. You do harder tasks with the computer all the time.
    2. If you don't already have a current backup, back up all data before doing anything else. The backup is necessary on general principle, not because of anything in the test procedure. Backup is always a must, and when you're having any kind of trouble with the computer, you may be at higher than usual risk of losing data, whether you follow these instructions or not.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    3. Below are instructions to run a UNIX shell script, a type of program. As I wrote above, it changes nothing. It doesn't send or receive any data on the network. All it does is to generate a human-readable report on the state of the computer. That report goes nowhere unless you choose to share it. If you prefer, you can act on it yourself without disclosing the contents to me or anyone else.
    You should be wondering whether you can believe me, and whether it's safe to run a program at the behest of a stranger. In general, no, it's not safe and I don't encourage it.
    In this case, however, there are a couple of ways for you to decide whether the program is safe without having to trust me. First, you can read it. Unlike an application that you download and click to run, it's transparent, so anyone with the necessary skill can verify what it does.
    You may not be able to understand the script yourself. But variations of it have been posted on this website thousands of times over a period of years. The site is hosted by Apple, which does not allow it to be used to distribute harmful software. Any one of the millions of registered users could have read the script and raised the alarm if it was harmful. Then I would not be here now and you would not be reading this message. See, for example, this discussion.
    Nevertheless, if you can't satisfy yourself that these instructions are safe, don't follow them. Ask for other options.
    4. Here's a summary of what you need to do, if you choose to proceed:
    ☞ Copy a line of text in this window to the Clipboard.
    ☞ Paste into the window of another application.
    ☞ Wait for the test to run. It usually takes a few minutes.
    ☞ Paste the results, which will have been copied automatically, back into a reply on this page.
    The sequence is: copy, paste, wait, paste again. You don't need to copy a second time. Details follow.
    5. Try to test under conditions that reproduce the problem, as far as possible. For example, if the computer is sometimes, but not always, slow, run the test during a slowdown.
    You may have started up in "safe" mode. If the system is now in safe mode and works well enough in normal mode to run the test, restart as usual. If you can only test in safe mode, do that.
    6. If you have more than one user, and the one affected by the problem is not an administrator, then please run the test twice: once while logged in as the affected user, and once as an administrator. The results may be different. The user that is created automatically on a new computer when you start it for the first time is an administrator. If you can't log in as an administrator, test as the affected user. Most personal Macs have only one user, and in that case this section doesn’t apply. Don't log in as root.
    7. The script is a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, though you may not see all of it in the browser window, and you can then copy it. If you try to select the line by dragging across the part you can see, you won't get all of it.
    Triple-click anywhere in the line of text below on this page to select it:
    PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/libexec;clear;cd;p=(1226 ' 0.5 0.25 10 1000 15 5120 1000 25000 1 1 0 100 ' 51 25600 4 10 25 5120 102400 1000 25 1000 80 40 500 300 85 25 20480 262144 20 2000 524288 604800 );k=({Soft,Hard}ware Memory Diagnostics Power FireWire Thunderbolt USB Bluetooth SerialATA Extensions Applications Frameworks PrefPane Fonts Displays CFBundleIdentifier 'tsA|[ST]M[HL]' PlistBuddy{,' 2>&1'}' -c Print' 'Info\.plist' 'com\\.apple\\.' -\\t N\\/A 'AES|atr|udit|msa|dnse|ax|ensh|fami|FileS|fing|ft[pw]|gedC|kdu|etS|is\.|alk|ODSA|otp|htt|pcas|ps-lp|rexe|rlo|rsh|smb|snm|teln|upd-[aw]|uuc|vix|webf' OSBundle{Require,AllowUserLoa}d );f=('\n%s'{': ','\n\n'}'%s\n' '\nRAM details\n%s\n' '%s %s\n' '%s\n'"${k[22]}"'%s\n' {Privacy,Mode}': %s\n' '\n   ...and %s more line(s)\n' 'RSSI: %s\nNoise: %s\nTx rate: %s\n' '\nContents of %s\n   '"${k[22]}"'mod date: %s\n   '"${k[22]}"'checksum: %s\n%s\n' '%d MB: %s\n' );b=(com.adobe.{AAM.Updater-1.0{,},AdobeCreativeCloud,CS{4,5}ServiceManager,fpsaud,SwitchBoard{,}} ${k[21]}{aelwriter,{AirPortBaseSt,SafariNotific}ationAgent,FolderActions.enabled,installer.osmessagetracing,mrt.uiagent,ReportCrash.Self,{rp,usb}muxd} com.citrixonline.GoToMeeting.G2MUpdate com.google.keystone.{agent,daemon} com.microsoft.office.licensing.helper com.oracle.java.{Helper-Tool,JavaUpdateHelper{,}} com.teamviewer.{Helper,teamviewer{,_desktop,_service}} org.macosforge.xquartz.{privileged_{,},}startx );c=(879294308 4071182229 461455494 3627668074 1083382502 1274181950 1855907737 2758863019 1848501757 464843899 2636415542 3694147963 1233118628 2456546649 2806998573 2778718105 842973933 2051385900 3301885676 891055588 998894468 695903914 1443423563 4136085286 3374894509 1051159591 892310726 1707497389 523110921 2883943871 3873345487 );s=(' s/[0-9A-Za-z._]+@[0-9A-Za-z.]+\.[0-9A-Za-z]{2,4}/EMAIL/g;/faceb/s/(at\.)[^.]+/\1NAME/g;/\/Shared/!s/(\/Users\/)[^ /]+/\1USER/g;s/[-0-9A-Fa-f]{22,}/UUID/g;' ' s/^ +//;/de: S|[nst]:/p;' ' {sub(/^ +/,"")};/er:/;/y:/&&$2<'${p[4]} ' s/:$//;3,6d;/[my].+:/d;s/^ {4}//;H;${ g;s/\n$//;/s: (E[^m]|[^EO])|x([^08]|02[^F]|8[^0])/p;} ' ' 5h;6{ H;g;/P/!p;} ' ' ($1~/^Cy/&&$3>'${p[9]}')||($1~/^Cond/&&$2!~/^N/) ' ' /:$/{ N;/:.+:/d;s/ *://;b0'$'\n'' };/^ *(V.+ [0N]|Man).+ /{ s/ 0x.... //;s/[()]//g;s/(.+: )(.+)/ (\2)/;H;};$b0'$'\n'' d;:0'$'\n'' x;s/\n\n//;/Apple[ ,]|Genesy|Intel|SMSC/d;s/\n.*//;/\)$/p;' ' s/^.*C/C/;H;${ g;/No th|pms/!p;} ' '/= [^GO]/p' '{$1=""};1' ' /Of/!{ s/^.+is |\.//g;p;} ' ' BEGIN { FS=":";if(system("sw_vers -productVersion|grep -q ^10\.1")) d="^'"${k[21]}"'launch(d\.peruser\.[0-9]+|ctl\.(Aqua|Background|System))$";} { if($2~/[1-9]/) { $2="status: "$2;printf("'"${f[4]}"'",$1,$2);} else if(!d||$1!~d) print $1;} ' ' { sub(/ :/,"");print|"tail -n'${p[10]}'";} ' ' NR==2&&$4<='${p[7]}' { print $4;} ' ' ($1~"wir"&&$2>'${p[22]}')||($1~"uts"&&$2>'${p[19]}') { print $1" "int($2);} ' '/YLD/s/=/ /p' ' { q=$1;$1="";u=$NF;$NF="";gsub(/ +$/,"");print q":"$0":"u;} ' ' /^ {6}[^ ]/d;s/:$//;/([^ey]|[^n]e):/d;/e: Y/d;s/: Y.+//g;H;${ g;s/ \n (\n)/\1/g;s/\n +(M[^ ]+)[ -~]+/ (\1)/;s/\n$//;/( {8}[^ ].*){2,}/p;} ' 's:^:/:p;' ' !/ /{print};END{if(NR<'{${p[12]},${p[13]}}')printf("^'"${k[21]}"'.+")} ' '|uniq' ' 1;END { if(NR<'{${p[14]},${p[21]}}') printf("^/[Sp]|'${k[21]}'");} ' ' /\.(framew|lproj)|\):/d;/plist:|:.+(Mach|scrip)/s/:.+//p;' '&&echo On' '/\.(bundle|component|framework|kext|mdimporter|plugin|qlgenerator|saver|wdgt)$/p' '/\.dylib$/p' ' /Temp|emac/{next};/(etc|Preferences|Launch[AD].+)\// { sub(".","");print;} END { split("'"${b[*]}"'",b);split("'"${c[*]}"'",c);for(i in b) print b[i]".plist\t"c[i];} ' ' /^\/(Ap|Dev|Inc|Prev)/d;/((iTu|ok).+dle|\.(component|mailbundle|mdimporter|plugin|qlgenerator|saver|wdgt))$/p;' ' $2=="=" { gsub(/[()"]/,"",$3);print $3;} ' ' /^\// { sub("/dev/","",$1);printf("%s: %s\n",$1,$9);} ' '>&-||echo No' '{print $3"\t"$1}' 's/\'$'\t''.+//p' 's/1/On/p' '/Prox.+: [^0]/p' '$2>'${p[2]}'{$2=$2-1;print}' ' BEGIN { M1='${p[16]}';M2='${p[18]}';M3='${p[8]}';M4='${p[3]}';} !/^A/{next};/%/ { getline;if($5<M1) o["CPU"]="CPU: user "$2"%, system "$4"%";next;} $2~/^disk/&&$4>M2 { o[$2]=$2": "$3" ops/s, "$4" blocks/s";next;} $2~/^(en[0-9]|bridg)/ { if(o[$2]) { e=$3+$4+$5+$6;if(e) o[$2]=o[$2]"; errors "e"/s";next;};if($4>M3||$6>M4) o[$2]=$2": in "int($4/1024)", out "int($6/1024)" (KiB/s)";} END { for(i in o) print o[i];} ' ' /r\[0\] /&&$NF!~/^1(0|72\.(1[6-9]|2[0-9]|3[0-1])|92\.168)\./ { print $NF;exit;} ' ' !/^T/ { printf "(static)";exit;} ' '/apsd|BKAg|OpenD/!s/:.+//p' ' (/k:/&&$3!~/(255\.){3}0/)||(/v6:/&&$2!~/A/) ' ' $1=="op" {m=$3};$1~"lN" {N=$2};$1~"lR" {S=$2};$1~"Tx" {T=$2};$1~/^st/ {s=$2};$1~"li"&&$3!~"wpa2" {printf("'"${f[5]}"'",toupper($3))};END { if(S*N*T&&(S-N<'${p[5]}'||T<'${p[20]}')) printf("'"${f[8]}"'",S,N,T);if(s~/^r/&&m!~/^st/) printf("'"${f[6]}"'",m);} ' ' BEGIN { FS=":";} { n=split($3,a,".");sub(/_2[01].+/,"",$3);print $2" "$3" "a[n]$1;} ' ' BEGIN { split("'"${p[1]}"'",m);FS=":";} $2<=m[$1]{next} $1<9 { o[$1]=o[$1]"\n   "$3" (UID "$4"): "$2;} $1==9&&$5!~"^/dev" { o[$1]=o[$1]"\n   "$3" (UID "$4") => "$5" (status "$6"): "$2;} $1==10&&$5 { p="ps -c -ocomm -p"$5"|sed 1d";p|getline n;close(p);if(n) $5=n;o[$1]=o[$1]"\n   "$5" => "$3" UID ("$4"): "$2;} $1~/1[12]/ { o[$1]=o[$1]"\n   "$3" (UID "$4", error "$5"): "$2;} END { u1="Mb/s";u2="per sec";u3="ms/s";u4="KiB/s";u5="%";u6="total";u7="MB";u8="ports";u[1]=u1;u[2]=u1;u[3]=u3;u[4]=u4;u[5]=u5;u[6]=u6;u[7]=u7;u[8]=u8;u[9]=u2;u[10]=u2;u[11]=u2;u[12]=u2;l[1]="Net in";l[2]="Net out";l[3]="I/O wait time";l[4]="I/O requests";l[5]="CPU usage";l[6]="Open files";l[7]="Memory";l[8]="Mach ports";l[9]="File opens";l[10]="Forks";l[11]="Failed forks";l[12]="System errors";for(i in o) print "\n"l[i]" ("u[i]")\n"o[i];} ' ' END{if($3~/[0-9]/)print$3} ' ' BEGIN { L='${p[17]}';} !/^[[:space:]]*(#.*)?$/ { l++;if(l<=L) f=f"\n   "$0;} END { F=FILENAME;if(!F) exit;if(!f) f="\n   [N/A]";"cksum "F|getline C;split(C, A);C=A[1];"stat -f%Sm "F|getline D;"file -b "F|getline T;if(T~/^Apple b/) { f="";l=0;while("'"${k[18]}"' "F|getline g) { l++;if(l<=L) f=f"\n   "g;};};if(T!~/^(AS.+ (En.+ )?text(, with v.+)?$|(Bo|PO).+ sh.+ text ex|XM)/) F=F"\n   '"${k[22]}"'"T;printf("'"${f[9]}"'",F,D,C,f);if(l>L) printf("'"${f[7]}"'",l-L);} ' ' s/^ ?n...://p;s/^ ?p...:/-'$'\t''/p;' 's/0/Off/p' 's/^.{52}(.+) <.+/\1/p' ' /id: N|te: Y/{i++} END{print i} ' ' /kext:/ { split($0,a,":");p=a[1];k[S]='${k[25]}';k[U]='${k[26]}';v[S]="Safe";v[U]="true";for(i in k) { s=system("'"${k[18]}"'\\ :"k[i]" \""p"\"/*/I*|grep -qw "v[i]);if(!s) a[1]=a[1]" "i;};if(!a[2]) a[2]="'"${k[23]}"'";printf("'"${f[4]}"'",a[1],a[2]);next;} !/^ *$/ { p="'"${k[19]}"'\\ :'"${k[16]}"' \""$0"\"/*/'${k[20]}'";p|getline b;close(p);if(b~/ /||b=="") b="'"${k[23]}"'";printf("'"${f[4]}"'",$0,b);} ' '/ en/!s/\.//p' ' NR>=13 { gsub(/[^0-9]/,"",$1);print;} ' ' $10~/\(L/&&$9!~"localhost" { sub(/.+:/,"",$9);print $1": "$9|"sort|uniq";} ' '/^ +r/s/.+"(.+)".+/\1/p' 's/(.+\.wdgt)\/(Contents\/)?'${k[20]}'$/\1/p' 's/^.+\/(.+)\.wdgt$/\1/p' ' /l: /{ /DVD/d;s/.+: //;b0'$'\n'' };/s: /{ /V/d;s/^ */- /;H;};$b0'$'\n'' d;:0'$'\n'' x;/APPLE [^:]+$/d;p;' '/^find: /!p;' ' /^p/{ s/.//g;x;s/\nu/:/;s/(\n)c/\1:/;s/\n\n//;p;};H;' ' BEGIN{FS="= "} /Path/{print $2} ' ' /^ *$/d;s/^ */   /;p;' ' s/^.+ |\(.+\)$//g;p;' '1;END{if(NR<'${p[15]}')printf("^/(S|usr/(X|li))")}' ' /2/{print "WARN"};/4/{print "CRITICAL"};' ' /EVHF|MACR|^s/d;s/^.+: //p;' ' $3~/^[1-9][0-9]{0,2}(\.[1-9][0-9]{0,2}){2}$/ { i++;n=n"\n"$1"\t"$3;} END{ if(i>1)print n} ' s/{'\.|jnl: ','P.+:'}'//;s/ +([0-9]+)(.+)/\2 \1/p' ' /es: ./{ s/^.+://;b0'$'\n'' };/^ +C.+ted: +[NY]/H;/:$/b0'$'\n'' d;:0'$'\n'' x;/: +N/d;s/\n.+//p;' ' 1d;/:$/b0'$'\n'' $b0'$'\n'' /(D|^ *Loc.+): /{ s/^.+: //;H;};/(B2|[my]): /H;d;:0'$'\n'' x;/[my]: [AM]|m: I.+p$|^\/Vo/d;s/(^|\n) [ -~]+//g;s/(.+)\n(.+)/\2:\1/;s/\n//g;/[ -~]/p;' 's/$/:(0|-(4[34])?)$/p' '|sort'{'|uniq'{,\ -c},\ -nr} ' s/^/'{5,6,7,8}':/;s/ *: */:/g;p;' '/e:/{print $2}' ' /^[(]/{ s/....//;s/$/:/;N;/: [)]$/d;s/\n.+ ([^ ]+).$/\1/;H;};${ g;p;} ' 's/:.+$//p' '|wc -l' /{\\.{kext,xpc,'(appex|pluginkit)'}'\/(Contents\/)?'Info,'Launch[AD].+'}'\.plist$/p' 's/([-+.?])/\\\1/g;p' 's/, /\'$'\n/g;p' ' BEGIN{FS=":"} { printf("'"${f[10]}"'",$1/1048576,$2);} ' ' /= D/&&$1!~/'{${k[24]},${k[17]}}'/ { getline d;if(d~"t") D=D"\n"$1;} END { print D;} ' ' NR>1&&$3!~/0x|\.([0-9]{3,}|[-0-9A-F]{36})$/ { print $3":"$2;} ' '|tail -n'${p[6]} ' $1>1 { $NF=$NF" x"$1;} /\*/ { if(!f) f="\n\t* Code injection";} { $1="";} 1;END { print f;} ' ' s/.+bus /Bus: /;s/,.+[(]/ /;s/,.+//p;' ' { $NF=$NF" Errors: "$1;$1="";} 1 ' ' 1s/^/\'$'\n''/;1s/:/ tree/;/^ +[MPSV].+: ./d;s/:$//;p;' 's/,.+"//p' '|grep -q e:/' '/[^ .]/p' '{ print $1}' );c1=(system_profiler pmset\ -g nvram fdesetup find syslog df vm_stat sar ps crontab kextfind top pkgutil "${k[18]}\\" echo cksum kextstat launchctl smcDiagnose sysctl\ -n defaults\ read stat lsbom 'mdfind -onlyin' env pluginkit scutil 'dtrace -q -x aggsortrev -n' profiles sed\ -En awk /S*/*/P*/*/*/C*/*/airport networksetup mdutil lsof test osascript\ -e netstat mdls route egrep 'dscl . -read' );c2=(${k[21]}loginwindow\ LoginHook ' /L*/P*/loginw*' "'tell app \"System Events\" to get properties of login items'" 'L*/Ca*/'${k[21]}'Saf*/E* -d 2 -name '${k[20]} '~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \)' -i '-nl -print' '-F \$Sender -k Level Nle 3 -k Facility Req "'${k[21]}'('{'bird|.*i?clou','lsu|sha'}')"' "-f'%N: %l' Desktop L*/Keyc*" therm sysload boot-args status " -F '\$Time \$Message' -k Sender kernel -k Message CRne '0xdc008012|calling|(complet|enabl)ed|ry HD' -k Message CReq 'bad |Can.t l|corru|dead|fail|GPU |hfs: Ru|inval|Limiti|v_c|NVDA\(|pagin|error|Refus|TCON|tim(ed? ?|ing )o|WARN' " '-du -n DEV -n EDEV 1 10' 'acrx -o%cpu,comm,ruid' "' syscall::recvfrom:return {@a[execname,uid]=sum(arg0)} syscall::sendto:return {@b[execname,uid]=sum(arg0)} syscall::open*:entry {@c[execname,uid,copyinstr(arg0),errno]=count()} syscall::execve:return, syscall::posix_spawn:return {@d[execname,uid,ppid]=count()} syscall::fork:return, syscall::vfork:return, syscall::posix_spawn:return /arg0 < 0/ {@e[execname,uid,arg0]=count()} syscall:::return /errno != 0/ {@f[execname,uid,errno]=count()} io:::wait-start {self->t=timestamp} io:::wait-done /self->t/ { this->T=timestamp - self->t;@g[execname,uid]=sum(this->T);self->t=0;} io:::start {@h[execname,uid]=sum(args[0]->b_bcount)} tick-10sec { normalize(@a,2560000);normalize(@b,2560000);normalize(@c,10);normalize(@d,10);normalize(@e,10);normalize(@f,10);normalize(@g,10000000);normalize(@h,10240);printa(\"1:%@d:%s:%d\n\",@a);printa(\"2:%@d:%s:%d\n\",@b);printa(\"9:%@d:%s:%d:%s:%d\n\",@c);printa(\"10:%@d:%s:%d:%d\n\",@d);printa(\"11:%@d:%s:%d:%d\n\",@e);printa(\"12:%@d:%s:%d:%d\n\",@f);printa(\"3:%@d:%s:%d\n\",@g);printa(\"4:%@d:%s:%d\n\",@h);exit(0);} '" '-f -pfc /var/db/r*/'${k[21]}'*.{BS,Bas,Es,J,OSXU,Rem,up}*.bom' '{/,}L*/Lo*/Diag* -type f -regex .\*[cght] ! -name .?\* ! -name \*ag \( -exec grep -lq "^Thread c" {} \; -exec printf \* \; -o -true \) -execdir stat -f:%Sc:%N -t%F {} \;' '/S*/*/Ca*/*xpc*' '-L /{S*/,}L*/StartupItems -type f -exec file {} +' /\ kMDItemContentTypeTree=${k[21]}{bundle,mach-o-dylib} :Label "/p*/e*/{aut*,{cron,fs}tab,hosts,{[lp],sy}*.conf,mach_i*/*,pam.d/*,ssh{,d}_config,*.local} {/p*,/usr/local}/e*/periodic/*/* /L*/P*{,/*}/com.a*.{Bo,sec*.ap}*t {/S*/,/,}L*/{Lau,Sec}*/*t .launchd.conf" list '-F "" -k Sender hidd -k Nle 3' /Library/Preferences/${k[21]}alf\ globalstate --proxy '-n get default' -I --dns -get{dnsservers,info} -P -m\ / '' -n1 '-R -ce -l1 -n5 -o'{'prt -stats prt','mem -stats mem'}',command,uid' -kl -l -s\ / '--regexp --files '${k[21]}'pkg.*' '+c0 -i4TCP:0-1023' ${k[21]}dashboard\ layer-gadgets '-d /L*/Mana*/$USER' '-app Safari WebKitDNSPrefetchingEnabled' '-Fcu +c0 -l' -m 'L*/{Con*/*/Data/L*/,}Pref* -type f -size 0c -name *.plist.???????' kern.memorystatus_vm_pressure_level '3>&1 >&- 2>&3' '-F \$Message -k Sender kernel -k Message CReq "'{'n Cause: -','(a und|I/O |jnl_io.+)err','USBF:.+bus'}'"' -name\ kMDItem${k[16]} -T\ hfs '-n get default' -listnetworkserviceorder :${k[16]} :CFBundleDisplayName $EUID {,'/{S*/,}'}'L*/{,Co*/*/*/L*/}{Cache,Log}s $TMPDIR../C -type f -size +'${p[11]}'M -exec stat -f'%z:%N' {} \;' \ /v*/d*/*/*l*d{,.*.$UID}/* '-app Safari UserStyleSheetEnabled' "-o ',\"name\":\"[^\"]+' L*/A*/Fi*/P*/*/a*.json" users/$USER\ HomeDirectory '{/,}L*/{Con,Pref}* -type f ! -size 0 -name *.plist -exec plutil -s {} \;' ' -F "\$Time \$Sender \$(RefProc): \$Message" -k Level Nle 3 -k Facility R'{'ne "user|','eq "'}'console" -k Message CRne "^ |sandbox ex" ' getenv '/ "kMDItemDateAdded>=\$time.now(-'${p[23]}')&&kMDItem'${k[16]}'=*"' );N1=${#c2[@]};for j in {0..15};do c2[N1+j]=SP${k[j]}DataType;done;l=({Restricted\ ,Lock,Pro}files POST Battery {Safari,App,{Bad,Loaded}\ kernel,Firefox}\ extensions System\ load boot\ args FileVault\ {2,1} {Kernel,System,Console}\ log Activity SMC Login\ hook 'I/O per process' 'High file counts' UID Daemons Agents XPC\ cache Startup\ items {Admin,Root}\ access Stylesheet Library\ paths{,' ('{shell,launchd}\)} Font\ issues Firewall Proxies DNS TCP/IP Wi-Fi 'Elapsed time (sec)' {Root,User}\ crontab {Global,User}' login items' Spotlight Memory\ pressure Listeners Widgets Parental\ Controls Prefetching Nets Volumes {Continuity,I/O,iCloud,HID,HCI}\ errors {User,System}\ {caches/logs,overrides} Shutdown\ codes Heat Diagnostic\ reports Bad\ plists Free\ space VM Bundles{,' (new)'} );N3=${#l[@]};for i in {0..8};do l[N3+i]=${k[5+i]};done;F() { local x="${s[$1]}";[[ "$x" =~ ^([\&\|\<\>]|$) ]]&&{ printf "$x";return;};:|${c1[30]} "$x" 2>&-;printf "%s \'%s\'" "|${c1[30+$?]}" "$x";};A0() { Q=6;v[2]=1;id -G|grep -qw 80;v[1]=$?;((v[1]))||{ Q=7;sudo -v;v[2]=$?;((v[2]))||Q=8;};v[3]=`date +%s`;date '+Start time: %T %D%n';printf '\n[Process started]\n\n'>&4;printf 'Revision: %s\n\n' ${p[0]};};A1() { local c="${c1[$1]} ${c2[$2]}";shift 2;c="$c ` while [[ "$1" ]];do F $1;shift;done`";((P2))&&{ c="sudo $c";P2=;};v=`eval "$c"`;[[ "$v" ]];};A2() { local c="${c1[$1]}";[[ "$c" =~ ^(awk|sed ) ]]&&c="$c '${s[$2]}'"||c="$c ${c2[$2]}";shift 2;local d=` while [[ "$1" ]];do F $1;shift;done`;((P2))&&{ c="sudo $c";P2=;};local a;v=` while read a;do eval "$c '$a' $d";done<<<"$v";`;[[ "$v" ]];};A3(){ v=$((`date +%s`-v[3]));};B1() { v=No;! ((v[1]))&&{ v=;P1=1;};};eval "`type -a B1|sed '1d;s/1/2/'`";B3(){ v[$1]="$v";};B4() { local i=$1;local j=$2;shift 2;local c="cat` while [[ "$1" ]];do F $1;shift;done`";v[j]=`eval "{ $c;}"<<<"${v[i]}"`;};B5(){ v[$1]="${v[$1]}"$'\n'"${v[$2]}";};B6() { v=` paste -d: <(printf "${v[$1]}") <(printf "${v[$2]}")|awk -F: ' {printf("'"${f[$3]}"'",$1,$2)} ' `;};B7(){ v=`egrep -v "${v[$1]}"<<<"$v"|sort`;};eval "`type -a B7|sed '1d;s/7/8/;s/-v //'`";C0() { [[ "$v" ]]&&sed -E "$s"<<<"$v";};C1() { [[ "$v" ]]&&printf "${f[$1]}" "${l[$2]}" "$v"|sed -E "$s";};C2() { v=`echo $v`;[[ "$v" != 0 ]]&&C1 0 $1;};C3() { B4 0 0 63&&C1 1 $1;};C4() { echo $'\t'"Part $((++P)) of $Q done at $((`date +%s`-v[3])) sec">&4;};C5() { sudo -k;pbcopy<<<"$o";printf '\n\tThe test results are on the Clipboard.\n\n\tPlease close this window.\n';exit 2>&-;};for i in 1 2;do eval D${i}0'(){ A'$i' $@;C0;};';for j in 2 3;do eval D$i$j'(){ local x=$1;shift;A'$i' $@;C'$j' $x;};';done;done;trap C5 2;o=$({ A0;D10 0 N1+1 2;D10 0 $N1 1;B1;C2 27;B1&&! B2&&C2 28;D12 22 15 63;D10 0 N1+2 3;D10 0 N1+15 17;D13 3 0 N1+3 4;D13 4 0 N1+4 5;D13 N3+4 0 N1+9 59;for i in 0 1 2;do D13 N3+i 0 N1+5+i 6;done;D13 N3+3 0 N1+8 71;D13 62 1 10 7;D13 10 1 11 8;B2&&D13 18 19 53 67;D12 11 2 12 9;D12 12 3 13 10;D12 13 42 70 101 25;D12 65 6 36 13;D12 45 20 52 66;D13 66 7 37 14;D13 17 8 15 38;D10 9 16 16 77 45;C4;B2&&D10 35 49 61 75 76 78 45;B2&&{ D10 28 17 45;C4;};D10 12 40 54 16 79 45;D10 12 39 54 16 80 45;D13 31 25 37 15&&{ B4 0 8 103;B4 8 0;A2 18 74;B6 8 0 3;C3 32;};B2&&D13 19 21 0;B2&&D13 40 10 42;B2&&D12 2 29 35 46;D12 44 34 43 53;D12 25 22 20 32;D12 33 0 N1+14 51;D12 34 21 28 35;D13 35 27 29 36;A1 40 59 81;B3 18;A1 33 60 82;B8 18;B4 0 19 83;A1 27 32 39&&{ B3 20;B4 19 0;A2 33 33 40;B3 21;B6 20 21 3;};C2 36;D13 50 38 5 68;B4 19 0;D23 37 33 34 42;B2&&D13 46 35 45 55;D13 38 32 31 43;B2&&D13 59 4 65 76 91;D13 63 4 19 44 75 95 96;B1&&{ D13 53 5 55 75 69&&D13 51 6 58 31;D13 56 5 56 97 75 98&&D10 0 N1+7 99;D12 55 5 27 84;D13 61 5 54 75 70;D13 14 5 14 12;D13 15 5 72 12;C4;};D13 16 5 73 12;A1 13 44 74 18;C4;B3 4;B4 4 0 85;A2 14 61 89;B4 0 5 19 102;A1 17 41 20;B7 5;C3 8;B4 4 0 88;A2 14 24 89;C4;B4 0 6 19 102;B4 4 0 86;A2 14 61 89;B4 0 7 19 102;B5 11 7;B4 11 11 73 102;B2&&{ A1 18 26 94;B7 11;B4 0 0 11;C3 23;};A1 18 26 94;B7 11;B4 0 0 11;C3 24;D13 60 14 66 92;D13 58 14 67 93;D13 26 4 21 24;D13 42 14 1 62;D13 43 37 2 90 48;D13 41 10 42;D12 48 36 47 25;A1 4 3 60&&{ B3 9;A2 14 61;B4 0 10 21;B4 9 0;A2 14 62;B4 0 0 21;B6 0 10 4;C3 5;};D13 9 41 69 100;D12 29 21 68 35;D12 49 21 48 49;B4 4 22 57 102;A1 21 46 56 74;B7 22;B4 0 0 58;C3 47;D13 54 5 7 75 76 69;D13 52 5 8 75 76 69;D13 57 4 64 76 91;D12 0 4 4 84;D12 1 4 51 84;D13 21 22 9 37;A1 23 18 28 89;B4 0 16 22 102;A1 16 25 33;B7 16;B4 0 0 34;D20 31 47;D13 64 4 71 41;C4;B4 4 12 26 89 23 102;for i in {0..3};do A1 0 N1+10+i 72 74;B7 12;B4 0 0 52;C3 N3+5+i;((i))||C4;done;A1 24 22 29;B7 12;B3 14;A2 39 57 30;B3 15;B6 14 15 4;C3 67;A1 24 75 74;B3 23;A2 39 57 30;B3 24;B6 23 24 4;C3 68;B4 4 13 27 89 65;A1 24 23;B7 13;C3 30;B4 4 0 87;A2 14 61 89 20;B4 0 17;A1 26 50 64;B7 17;C3 6;D13 7 11 6;A3;C2 39;C4;} 4>&2 2>/dev/null;);C5
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    8. Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Click anywhere in the Terminal window and paste by pressing command-V. The text you pasted should vanish immediately. If it doesn't, press the return key.
    9. If you see an error message in the Terminal window such as "Syntax error" or "Event not found," enter
    exec bash
    and press return. Then paste the script again.
    10. If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter the password, the test will run anyway, but it will produce less information. In most cases, the difference is not important. If you don't know the password, or if you prefer not to enter it, just press return three times at the password prompt. Again, the script will still run.
    If you're not logged in as an administrator, you won't be prompted for a password. The test will still run. It just won't do anything that requires administrator privileges.
    11. The test may take a few minutes to run, depending on how many files you have and the speed of the computer. A computer that's abnormally slow may take longer to run the test. While it's running, a series of lines will appear in the Terminal window like this:
    [Process started]
            Part 1 of 8 done at … sec
            Part 8 of 8 done at … sec
            The results are on the Clipboard.
            Please close this window.
    [Process completed]
    The intervals between parts won't be exactly equal, but they give a rough indication of progress. The total number of parts may be different from what's shown here.
    Wait for the final message "Process completed" to appear. If you don't see it within about ten minutes, the test probably won't complete in a reasonable time. In that case, press the key combination control-C or command-period to stop it. Then go to the next step.
    12. When the test is complete, or if you stopped it because it was taking too long, quit Terminal. The results will have been copied to the Clipboard automatically. They are not shown in the Terminal window. Please don't copy anything from there. All you have to do is start a reply to this comment and then paste by pressing command-V again.
    At the top of the results, there will be a line that begins with the words "Start time." If you don't see that, but instead see a mass of gibberish, you didn't wait for the "Process completed" message to appear in the Terminal window. Please wait for it and try again.
    If any private information, such as your name or email address, appears in the results, anonymize it before posting. Usually that won't be necessary.
    13. When you post the results, you might see an error message on the web page: "You have included content in your post that is not permitted," or "You are not authorized to post." That's a bug in the forum software. Please post the test results on Pastebin, then post a link here to the page you created.
    14. This is a public forum, and others may give you advice based on the results of the test. They speak only for themselves, and I may not agree with them.
    Copyright © 2014, 2015 by Linc Davis. As the sole author of this work, I reserve all rights to it except as provided in the Use Agreement for the Apple Support Communities website ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed.

  • Setting the load factor for a HashMap used to cache objects

    I intend to use a HashMap to cache a small number of object and I am trying to initialize it such that it will execute lookups with minimal cost (time). I intend to initialize the HashMap with an initial capacity of 4, but I would appreciate any insight into the appropriate load factor to use to achieve the desired low-cost lookups. (As well, if anyone has suggestions as to a better method of caching a small number of objects, I would, again, be appreciative.)
    Shaun

    Your initial capacity is 4, so by a "small number of objects" you must mean "less than 10", I suppose. In this case pretty much any lookup will find the object almost immediately, including the O(n) sequential array search. So the only reason to care about the speed of this operation is if you are going to be doing it an extremely large number of times... is this the case?

  • Load factor in HashMap

    An instance of HashMap has a "load factor" that is a measure of how full the hash map is allowed to get before its capacity is automatically increased. The default load factor is 0.75.
    Why do we need it to be 0.75 and not 1? Is it because of the collisions? Or is there some other reason?

    Yes, collisions in HashMaps are costly, as they slightly increase the access time for the colliding objects. On the other hand creating a HashMap that has no collisions will take quite a lot of memory (or great amounts of computing power, depending on the strategy used). Therefore a compromise is used by allowing any number of collisions, but resizing the HashMap as soon as the amounts of elements stored in it is greater than factor * numberOfBuckets (assuming that x buckets, that store x/2 elements have only a few collisions).

  • Should I load properties and or preferentces into a hashmap??

    Would this make any difference performance wise?
    I use properties mostly for localized labels so it shouldn't affect much as they're loaded only once. But my code is checking preferences quite often...
    On the oder hand prefferences are writen to storage asynchronously but... is this true for reading? does the jvm maintain some kind of preferences cache or does it access back end for each prefference read?
    Thanks in advance,
    David

    oh, I'm sorry if I didn't express my question correctly, let me try again :-)
    I'm using both properties and preferences for two distinc pourposes:
    First I use properties for localization. I'm not really bothered for performance in this case as these are read only once at startup anyway. I was jus curious.
    Second I use preferences for application configuration data persistance. Say the current db url, or some path... This preferences are to be checked a lot of times during programm execution, hence the question.
    If preferencesr were not cached by the system then it would make sense to load them into a hashtable at startup and use this instead. If they were in fact cached by the system then I would preffer to stick with the convenience of having the jvm storing them automatically at shutdown time.
    Third: there are probably many performance problems in your code,This I'm sure but I've to try caching any problem I can see :-)
    Fourth: Property objects are loaded once and then cached.Ok, this part is now clear thaks to your reply and the one from sabre which, of course, I thank a lot.
    Regards,
    David

  • Load and performance testing

    How to do Load and performance test after upgrading database to 11gR2 during the dev and acceptance test. How to compare the performance before upgrade(10gR2 with 11.5.01.2) and after upgrade 11Gr2(11gR2 with 11.5.10.2).
    Regards
    appsdba

    Please see old threads for similar discussion -- http://forums.oracle.com/forums/search.jspa?threadID=&q=Performance+AND+Testing&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Mail has 16k  messages, and performance is very slow, with loading times taking up to 5 seconds every time I open Mail. How can I increase performance?

    Mail has 16k  messages, and performance is very slow, with loading times taking up to 5 seconds every time I open Mail.
    How can I increase performance?
    I'm running a MacBook Air 4GB 1.7GHz  10.7.2.
    Graham

    One possible solution would be to organise your inbox into folders.
    Its never relly good on any system to have one folder that has everything in it.
    Try going to you web gui for that mail account and organise your folders and move mails from your inbox into corresponding folders for better organisation.
    Several folders containing the same amount of one folder will usually load a little quicker as the folder may not be accessed to download its content unless veiwed.
    So having 10 folders with organised content, and you inbox as an area thats to hold only new emails would work much much quicker with imap.
    Most imap servers will only update the contents of a folder when its veiwed.

  • Pages are not loading properly and can't perform simple functions like forwarding e-mail, whats wrong?

    When I sign into my Yahoo account the mail page doesn't load correctly and prompts me to turn off automatic updates. I can't send or forward any e-mails in the mail section. When I sign into Facebook I can't poke people back, look at mail friend requests or notifications. And applications don't load at all. When I sign into my checking account I can't view the account page..it's all scrambled. And other web sites are scrambled looking also.

    Oberus,
    We're very sorry for the troubles you're having getting your messages to your customers.  We're happy to help.  We will escalate this to the proper group for review.  Thanks for your patience as we investigate and escalate this issue.  ~Ian
    Ian_VZ
    Verizon Support
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or Plan.

  • Storage options and performance

    We have a GroupWise 8.02 HP2 running on a NetWare 6.5 SP8.
    The hardware has a RAID 1 for its SYS: volume and a RAID 5 (4 disks)
    for its MAIL: volume.
    We've been running low on space....
    As an immediate solution, we're considering plugging into, via iSCSI,
    a SAN that has additional space.
    - If we go this route, would it be better to move our entire MAIL: volume
    to the SAN (rather than extend the volume over an iSCSI connection) or
    would performance/reliability not matter?
    - Are there any documents (I haven't found any, as yet) describing moving
    such a volume to another piece of hardware? [I suspect a few
    configuration
    files would need to be pointed to another location, but don't know if
    there
    are hidden pointers that might be missed.]
    Also under consideration (possibly a long term solution) would be to move
    to a new server with more capacity. [I'm considering a RAID 10.]
    - If we go to a RAID 10, would this eliminate the need for a RAID 1 for
    our SYS: volume? (Would it still be considered 'best practice' to have
    the SYS: on its own RAID--or could the different volumes be spread
    across the RAID 10 and be considered safe?
    Many thanks,
    -Steve

    Originally Posted by steve544c
    Thanks. Don't know if it's a good idea to move to
    a Linux platform--without any experience or training.
    I expect there'd be a whole new set of command-line
    commands to use--even if ConsoleOne and eDirectory
    remain the same.
    So ... you'd still recommend having separate RAIDs
    for SYS, MAIL, Archive, and Restore? If so, it
    doesn't seem doable (at least on our budget) to run
    a RAID 10 for our MAIL volume. The drop in storage
    I/O speed (from having less spindles available)
    wouldn't gain us much. [I was looking to have 16
    drives with the RAID 10.]
    If it's only GroupWise you would be running on SLES or preferably OES2, I'd think that would be doable. Once running, many sysadmins I work with don't have to know/use more than ' service grpwise status/stop/start' and the http status pages of the agents. GroupWise runs independent enough and as I've experienced very stable. I can't look into how much resources you/your company has to invest the time needed to get a grips with it.
    Looking a bit further, it would be something you'd need to do in any case if wanting to continue using Novell products. The new GroupWise version due somewhere this year won't run NetWare for example.
    The most important factor imo is speed and stability.
    As for different Raid's for SYS/system disk and GW DIB data... no, I was only talking about keeping OS and GroupWise data on separate disks/LUNS. How you can implement this strongly depends on what storage system you are looking to but.
    Raid10 is fast but not needed by definition, We use Raid50 in many setups - it performs well and has the added advantage of having more effective storage available with the same amount of disks. The choice on Raid set configuration is however very dependent on environment, load, vendor and type of the storage, overall load, etc... I don't think that's something one could really advise on without knowing more details.
    -Willem

  • ASCII character/string processing and performance - char[] versus String?

    Hello everyone
    I am relative novice to Java, I have procedural C programming background.
    I am reading many very large (many GB) comma/double-quote separated ASCII CSV text files and performing various kinds of pre-processing on them, prior to loading into the database.
    I am using Java7 (the latest) and using NIO.2.
    The IO performance is fine.
    My question is regarding performance of using char[i] arrays versus Strings and StringBuilder classes using charAt() methods.
    I read a file, one line/record at a time and then I process it. The regex is not an option (too slow and can not handle all cases I need to cover).
    I noticed that accessing a single character of a given String (or StringBuilder too) class using String.charAt(i) methods is several times (5 times+?) slower than referring to a char of an array with index.
    My question: is this correct observation re charAt() versus char[i] performance difference or am I doing something wrong in case of a String class?
    What is the best way (performance) to process character strings inside Java if I need to process them one character at a time ?
    Is there another approach that I should consider?
    Many thanks in advance

    >
    Once I took that String.length() method out of the 'for loop' and used integer length local variable, as you have in your code, the performance is very close between array of char and String charAt() approaches.
    >
    You are still worrying about something that is irrevelant in the greater scheme of things.
    It doesn't matter how fast the CPU processing of the data is if it is faster than you can write the data to the sink. The process is:
    1. read data into memory
    2. manipulate that data
    3. write data to a sink (database, file, network)
    The reading and writing of the data are going to be tens of thousands of times slower than any CPU you will be using. That read/write part of the process is the limiting factor of your throughput; not the CPU manipulation of step #2.
    Step #2 can only go as fast as steps #1 and #3 permit.
    Like I said above:
    >
    The best 'file to database' performance you could hope to achieve would be loading simple, 'known to be clean', record of a file into ONE table column defined, perhaps, as VARCHAR2(1000); that is, with NO processing of the record at all to determine column boundaries.
    That performance would be the standard you would measure all others against and would typically be in the hundreds of thousands or millions of records per minute.
    What you would find is that you can perform one heck of a lot of processing on each record without slowing that 'read and load' process down at all.
    >
    Regardless of the sink (DB, file, network) when you are designing data transport services you need to identify the 'slowest' parts. Those are the 'weak links' in the data chain. Once you have identified and tuned those parts the performance of any other step merely needs to be 'slightly' better to avoid becoming a bottleneck.
    That CPU part for step #2 is only rarely, if every the problem. Don't even consider it for specialized tuning until you demonstrate that it is needed.
    Besides, if your code is properly designed and modularized you should be able to 'plug n play' different parse and transform components after the framework is complete and in the performance test stage.
    >
    The only thing that is fixed is that all input files are ASCII (not Unicode) characters in range of 'space' to '~' (decimal 32-126) or common control characters like CR,LF,etc.
    >
    Then you could use byte arrays and byte processing to determine the record boundaries even if you then use String processing for the rest of the manipulation.
    That is what my framework does. You define the character set of the file and a 'set' of allowable record delimiters as Strings in that character set. There can be multiple possible record delimiters and each one can be multi-character (e.g. you can use 'XyZ' if you want.
    The delimiter set is converted to byte arrays and the file is read using RandomAccessFile and double-buffering and a multiple mark/reset functionality. The buffers are then searched for one of the delimiter byte arrays and the location of the delimiter is saved. The resulting byte array is then saved as a 'physical record'.
    Those 'physical records' are then processed to create 'logical records'. The distinction is due to possible embedded record delimiters as you mentioned. One logical record might appear as two physical records if a field has an embedded record delimiter. That is resolved easily since each logical record in the file MUST have the same number of fields.
    So a record with an embedded delimiter will have few fields than required meaning it needs to be combined with one, or more of the following records.
    >
    My files have no metadata, some are comma delimited and some comma and double quote delimited together, to protect the embedded commas inside columns.
    >
    I didn't mean the files themselves needed to contain metadata. I just meant that YOU need to know what metadata to use. For example you need to know that there should ultimately be 10 fields for each record. The file itself may have fewer physical fields due to TRAILING NULLCOS whereby all consecutive NULL fields at the of a record do not need to be present.
    >
    The number of columns in a file is variable and each line in any one file can have a different number of columns. Ragged columns.
    There may be repeated null columns in any like ,,, or "","","" or any combination of the above.
    There may also be spaces between delimiters.
    The files may be UNIX/Linux terminated or Windows Server terminated (CR/LF or CR or LF).
    >
    All of those are basic requirements and none of them present any real issue or problem.
    >
    To make it even harder, there may be embedded LF characters inside the double quoted columns too, which need to be caught and weeded out.
    >
    That only makes it 'harder' in the sense that virtually NONE of the standard software available for processing delimited files take that into account. There have been some attempts (you can find them on the net) for using various 'escaping' techniques to escape those characters where they occur but none of them ever caught on and I have never found any in widespread use.
    The main reason for that is that the software used to create the files to begin with isn't written to ADD the escape characters but is written on the assumption that they won't be needed.
    That read/write for 'escaped' files has to be done in pairs. You need a writer that can write escapes and a matching reader to read them.
    Even the latest version of Informatica and DataStage cannot export a simple one column table that contains an embedded record delimiter and read it back properly. Those tools simply have NO functionality to let you even TRY to detect that embedded delimiters exist let alone do any about it by escaping those characters. I gave up back in the '90s trying to convince the Informatica folk to add that functionality to their tool. It would be simple to do.
    >
    Some numeric columns will also need processing to handle currency signs and numeric formats that are not valid for the database inpu.
    It does not feel like a job for RegEx (I want to be able to maintain the code and complex Regex is often 'write-only' code that a 9200bpm modem would be proud of!) and I don't think PL/SQL will be any faster or easier than Java for this sort of character based work.
    >
    Actually for 'validating' that a string of characters conforms (or not) to a particular format is an excellent application of regular expressions. Though, as you suggest, the actual parsing of a valid string to extract the data is not well-suited for RegEx. That is more appropriate for a custom format class that implements the proper business rules.
    You are correct that PL/SQL is NOT the language to use for such string parsing. However, Oracle does support Java stored procedures so that could be done in the database. I would only recommend pursuing that approach if you were already needing to perform some substantial data validation or processing the DB to begin with.
    >
    I have no control over format of the incoming files, they are coming from all sorts of legacy systems, many from IBM mainframes or AS/400 series, for example. Others from Solaris and Windows.
    >
    Not a problem. You just need to know what the format is so you can parse it properly.
    >
    Some files will be small, some many GB in size.
    >
    Not really relevant except as it relates to the need to SINK the data at some point. The larger the amount of SOURCE data the sooner you need to SINK it to make room for the rest.
    Unfortunately, the very nature of delimited data with varying record lengths and possible embedded delimiters means that you can't really chunk the file to support parallel read operations effectively.
    You need to focus on designing the proper architecture to create a modular framework of readers, writers, parsers, formatters, etc. Your concern with details about String versus Array are way premature at best.
    My framework has been doing what you are proposing and has been in use for over 20 years by three different major nternational clients. I have never had any issues with the level of detail you have asked about in this thread.
    Throughout is limited by the performance of the SOURCE and the SINK. The processing in-between has NEVER been an issu.
    A modular framework allows you to fine-tune or even replace a component at any time with just 'plug n play'. That is what Interfaces are all about. Any code you write for a parser should be based on an interface contract. That allows you to write the initial code using the simplest possible method and then later if, and ONLY if, that particular module becomes a bottlenect, replace that module with one that is more performant.
    Your intital code should ONLY use standard well-established constructs until there is a demonstrated need for something else. For your use case that means String processing, not byte arrays (except for detecting record boundaries).

  • Illegal Load factor 0.0 -- Has anybody seen this?

    Hi
    I am getting this weird error once in a while.
    java.lang.IllegalArgumentException: Illegal load factor: 0.0
         at java.util.HashMap.<init>(Unknown Source)
         at java.util.LinkedHashMap.<init>(Unknown Source)
         at java.util.HashSet.<init>(Unknown Source)
         at java.util.LinkedHashSet.<init>(Unknown Source)
    THis is caused by a call to something as simple as:
    Set<IAgent> result = new LinkedHashSet<IAgent>();
    Has anybody seen this error before?
    I sometimes also get this error while compiling my code inside Eclipse.
    I am afraid this could be a hardware related problems since I only see this error while running on my machine with an AMD 4800, windowsXP pro sp 2, sun jdk 1.5.0_06.
    It is not persistent. It only happens once in a while.
    Any suggestions of what could be the source of the problem?
    Marcel

    if you are saying eclipse is throwing the error, then somewhere in eclipse they have passed 0.0 as the second argument to the HashMap constructor,
    HashMap(int initialCapacity, float loadFactor)and you should post this as a bug here:
    https://bugs.eclipse.org/bugs/
    If it is your code that is doing it, don't do that.

  • ASM, rebalancing, 3rd party storage and performance

    Hi all, I have some questions for the storage experts and I need your opinion about:
    1. Which type of ASM is better for the rebalancing perspective (and obviously the performance perspective), but considering the availability as well: Unprotected, 2-way (normal) or 3-way (high)? I know 3-way is the worst because we have to multiply by 3 the space of the database, but has great availability. Which of these do you use in your company?
    2. If someone is using EMC/Fujitsu/Hitachi, do you use Unprotected or 2-way (normal) in ASM?
    3. Which type of rebalancing (from zero to 11) is the best to use, considering the overall performance , I mean, when you have to add a new disk, ASm will perform the rebalancing.
    4. Which is better to use: ASM Cluster File System or Oracle Cluster File System ?
    Thanks.

    977623 wrote:
    1. Which type of ASM is better for the rebalancing perspective (and obviously the performance perspective), but considering the availability as well: Unprotected, 2-way (normal) or 3-way (high)? I know 3-way is the worst because we have to multiply by 3 the space of the database, but has great availability. Which of these do you use in your company?Wrong question IMO. You do not choose normal or high redundancy based on which rebalances the fastest. You make that choice wrt to redundancy and high availability.
    The best in this respect is high redundancy. 3 storage servers. Fully redundant I/O fabric layer (3+ I/O paths from each server to each and every LUN). Which means you can loose 2 storage arrays and most of your I/O fabric layer (switches and cables). And the storage layer left will still be able to be effectively used for ASM and the RAC database will not even notice that this destruction happened.
    However, this best is not always feasible ito existing architecture, budget and so on. So that drives the requirements and needs and what the best is to meet that.
    2. If someone is using EMC/Fujitsu/Hitachi, do you use Unprotected or 2-way (normal) in ASM?That again depends on redundancy levels. If the SAN provides a RAID5 or RAID10 LUN, should you mirror it?
    This may makes sense if you have 2 SANS. And with each SAN implementing RAID5, you mirror (via ASM) across SANs.
    It makes less sense if you use ASM to mirror (on the same SAN) 2 RAID5 LUNs.
    You also may have no choice. For example, migrating a high redundancy diskgroup from a storage server (no redundancy by server), to a SAN (RAID5/10 redundancy by SAN). When migrating ASM diskgroups, you cannot reduce redundancy. You cannot make a high redundancy diskgroup a normal redundancy diskgroup. Or a normal one, an externally redundant diskgroup.
    In such a case you normal/high redundancy diskgroup on the new SAN (with its RAID5/10 LUNs), still need its own mirrors in ASM.
    3. Which type of rebalancing (from zero to 11) is the best to use, considering the overall performance , I mean, when you have to add a new disk, ASm will perform the rebalancing.How busy is the I/O layer? What production processing is running? How will this be impacted by using power 11? How soon does the old (dropped) disks need to be physically decommissioned? Etc.
    There is no single correct answer to what load balancing power setting to use.
    4. Which is better to use: ASM Cluster File System or Oracle Cluster File System ?For what purpose?
    For RAC database purposes only? ACFS. As OCFS adds another set of kernel drivers, kernel services, and another Interconnect (ocfs needs its own IP Interconnect that is typically run over the public IP network of the cluster, and that can be/should be run over the private IP network of the cluster).
    Why add more moving parts (ocfs) when ACFS is available?
    Then again - why use ACFS when you are not running Grid Infrastructure? Or why makes your cluster file system dependent on Grid/CRS to be running (with ASM), when OCFS's moving parts are significantly fewer and less complex?
    As with most things in Information Technology - there is no overall "best". The "best" depends on a number of factors, and the business requirements that need to be met.

  • Forms and Reports: Automated Test tools - functionality AND performance

    All,
    I'm looking to get a few leads on an automated test tools that may be used to validate Oracle forms and reports (see my software configuration below). I'm looking for tools that can automate both functional tests and performance. By this I mean;
    Functional Testing:
    * Use of shortcut keys
    * Navigation between fields
    * Screen organisation (filed locations)
    * Exercise forms validation (bad input values)
    * Provide values to forms and simulate user commit, and go and verify database state is as expected
    Performance Testing:
    * carry out tests for fixed user load
    * carry out tests for scaled step increase in user load
    * automated collection of log files and metrics during test
    So far I have:
    http://www.neotys.com/
    Thanks in advance for your response.
    Mathew Butler
    Configuration:
    Red Hat Enterprise Linux x86-64 architecture v4.5 64 bit
    Oracle Application Server 10.1.2.0.2 ( with patch 10.1.2.3 )
    Oracle Developer Suite (Oracle Forms and Reports) V10.1.2.0.2 ( with patch 10.1.2.3 )
    Oracle JInitiator 1.3.1.17 or later
    Microsoft Internet Explorer 6

    are there any tools for doing this activity like oracle recommended tools?
    Your question is unclear.  As IK mentioned, the only tool you need is a new version of Oracle Forms/Reports.  Open your v10 modules in a v11 Builder and select Save.  You now have a v11 module.  Doing a "Compile All PL/SQL" before saving is a good idea, but not required.  The Builders and utilites provided with the version 11 installation are the only supported tools for upgrading your application.  If you are trying to do the conversion of many Forms files in a scripted manner, you can use the Forms compiler in a script.  Generating new "X" files will also update the source modules (fmb, mmb, pll).  See MyOracleSupport Note 955143.1
    Also included in the installation in the Forms Migration Assistant.  Although it is more useful to people coming from older versions, it can also be used to move from v10 to 11.  It allows you to select more than one file at a time.  Documentation for this utility can be found in the Forms Upgrade Guide.
    Using the Oracle Forms Migration Assistant

  • I recently started using an iPad. I up loaded several apps. Evernote, cloudon, Goodreader, Drop Box and lots of others. It crashes when I down load pictures and then try to use them. Converting a jpg to a pdf usually triggers a crash.  Help

    I recently started using an iPad. I up loaded several apps. Evernote, cloudon, Goodreader, Drop Box and lots of others.
    It crashes when I down load pictures and then try to use them. Converting a jpg to a pdf usually triggers a crash.
    Is there a "hitch" in my "giddy up?"
    Help.
    Process:         iPhoto [345]
    Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto
    Identifier:      com.apple.iPhoto
    Version:         9.4.2 (9.4.2)
    Build Info:      iPhotoProject-710042000000000~2
    App Item ID:     408981381
    App External ID: 11723545
    Code Type:       X86 (Native)
    Parent Process:  launchd [183]
    Date/Time:       2013-04-26 13:53:18.305 -0700
    OS Version:      Mac OS X 10.7.5 (11G63)
    Report Version:  9
    Interval Since Last Report:          405039 sec
    Crashes Since Last Report:           7
    Per-App Interval Since Last Report:  318933 sec
    Per-App Crashes Since Last Report:   5
    Anonymous UUID:                      5073147D-D214-4BD3-B7FA-9A9E6A158ABA
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000c8fc0000
    VM Regions Near 0xc8fc0000:
        CG backing stores      00000000c8ea6000-00000000c8f19000 [  460K] rw-/rw- SM=SHM 
    --> CG backing stores      00000000c8fc0000-00000000c92f7000 [ 3292K] r--/rw- SM=SHM 
        Submap                 00000000ffff0000-00000000ffff2000          r-x/r-x process-only submap
    Application Specific Information:
    objc[345]: garbage collection is OFF
    Performing @selector(doSaveAsPDF:) from sender NSMenuItem 0x6da8c240
    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   com.apple.CoreGraphics        0x93976aec blt_pattern_blend_XXXX32 + 686
    1   com.apple.CoreGraphics        0x93976def blt_bitmap_blend_AXXX32 + 105
    2   com.apple.CoreGraphics        0x9355894c argb32_mark_pixelshape + 19824
    3   com.apple.CoreGraphics        0x93485293 argb32_mark + 279
    4   com.apple.CoreGraphics        0x9349c915 argb32_image + 1037
    5   libRIP.A.dylib                0x90afec75 ripd_Mark + 279
    6   libRIP.A.dylib                0x90afcc67 ripl_BltImage + 1368
    7   libRIP.A.dylib                0x90afc497 ripc_RenderImage + 269
    8   libRIP.A.dylib                0x90b08a8c ripc_DrawImages + 6467
    9   com.apple.CoreGraphics        0x935593be CGContextDrawImages + 239
    10  com.apple.coreui              0x94680a79 CUIPenCG::DrawImages(void*, CGRect const*, CGImage**, CGRect const*, unsigned long) + 45
    11  com.apple.coreui              0x94671fc5 CUIRenderer::DrawWindowFrameDark(CUIDescriptor const*) + 4531
    12  com.apple.coreui              0x9465ce0d CUIRenderer::Draw(CGRect, CGContext*, __CFDictionary const*, __CFDictionary const**) + 5701
    13  com.apple.coreui              0x9467dde5 CUIDraw + 206
    14  com.apple.AppKit              0x912a52e4 _NSDrawThemeBackground + 1429
    15  com.apple.AppKit              0x9145edeb -[NSThemeFrame _drawUnifiedToolbar:] + 874
    16  com.apple.AppKit              0x9145e7f3 -[NSThemeFrame _drawTitleBar:] + 673
    17  com.apple.AppKit              0x912a11cf -[NSThemeFrame _drawFrameInterior:clip:] + 125
    18  com.apple.AppKit              0x912a0dd9 -[NSThemeFrame drawFrame:] + 119
    19  com.apple.AppKit              0x9145e515 -[NSFrameView drawRect:] + 765
    20  com.apple.AppKit              0x9145dc5f -[NSThemeFrame drawRect:] + 107
    21  com.apple.AppKit              0x9126f6c9 -[NSView _drawRect:clip:] + 3717
    22  com.apple.AppKit              0x9129eae6 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1958
    23  com.apple.AppKit              0x9126d026 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 708
    24  com.apple.AppKit              0x9126c627 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 259
    25  com.apple.AppKit              0x91267caa -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 4817
    26  com.apple.AppKit              0x91260bd9 -[NSView displayIfNeeded] + 1365
    27  com.apple.AppKit              0x9138081b -[NSThemeFrame handleSetFrameCommonRedisplay] + 233
    28  com.apple.AppKit              0x913220b8 -[NSWindow _setFrameCommon:display:stashSize:] + 2253
    29  com.apple.AppKit              0x913217e6 -[NSWindow setFrame:display:] + 71
    30  com.apple.AppKit              0x913c5049 -[NSWindow _setFrameAfterMove:] + 496
    31  com.apple.AppKit              0x913c4e3f -[NSWindow _windowMovedToRect:] + 261
    32  com.apple.AppKit              0x9195152d -[NSWindow _getPositionFromServer] + 100
    33  com.apple.AppKit              0x919542a8 -[NSWindow _initFromGlobalWindow:inRect:styleMask:] + 350
    34  com.apple.RemoteViewServices  0x94640ff9 -[NSRemoteWindowController _remoteHostDidGrantRights:] + 335
    35  com.apple.RemoteViewServices  0x946409a4 __58-[NSRemoteWindowController _handleReplySetupSharedWindow:]_block_invoke_0 + 43
    36  com.apple.CoreGraphics        0x935c740b _WindowRightsGrantOfferedNotificationHandler + 678
    37  com.apple.CoreGraphics        0x93400a3b CGSPostLocalNotification + 218
    38  com.apple.CoreGraphics        0x934cdcfd notifyDatagramHandler + 265
    39  com.apple.CoreGraphics        0x934cda25 CGSDispatchDatagramsFromStream + 316
    40  com.apple.CoreGraphics        0x934cd594 snarfEvents + 481
    41  com.apple.CoreGraphics        0x934cd247 CGSGetNextEventRecordInternal + 127
    42  com.apple.CoreGraphics        0x93520180 CGEventCreateNextEvent + 40
    43  com.apple.HIToolbox           0x9b5a744e _ZL38PullEventsFromWindowServerOnConnectionjh + 69
    44  com.apple.CoreFoundation      0x9585ad0a __CFMachPortPerform + 346
    45  com.apple.CoreFoundation      0x9585ab91 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 49
    46  com.apple.CoreFoundation      0x9585a7bb __CFRunLoopDoSource1 + 155
    47  com.apple.CoreFoundation      0x95893e01 __CFRunLoopRun + 2193
    48  com.apple.CoreFoundation      0x958931dc CFRunLoopRunSpecific + 332
    49  com.apple.CoreFoundation      0x958a3f01 CFRunLoopRun + 129
    50  com.apple.RemoteViewServices  0x9463b7c8 -[NSRemoteSavePanel runModal] + 322
    51  com.apple.RemoteViewServices  0x9463ef05 -[NSRemoteSavePanel runModalForDirectory:file:types:] + 110
    52  com.apple.RemoteViewServices  0x9463ec94 -[NSRemoteSavePanel runModalForDirectory:file:] + 55
    53  com.apple.print.framework.Print.Private 0x1990afa3 AskUserForFile + 420
    54  com.apple.print.framework.Print.Private 0x1991977d 0x198f7000 + 141181
    55  com.apple.print.framework.Print.Private 0x1991ea91 0x198f7000 + 162449
    56  com.apple.CoreFoundation      0x958f2d11 -[NSObject performSelector:withObject:] + 65
    57  com.apple.AppKit              0x91329663 -[NSApplication sendAction:to:from:] + 232
    58  com.apple.AppKit              0x9141ccaf -[NSMenuItem _corePerformAction] + 536
    59  com.apple.AppKit              0x9141c92c -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 171
    60  com.apple.AppKit              0x9141bfb5 -[NSMenu _performActionWithHighlightingForItemAtIndex:sendAccessibilityNotification:] + 79
    61  com.apple.AppKit              0x916f7ef7 -[NSMenu performActionForItemAtIndex:] + 65
    62  com.apple.AppKit              0x916f7f2a -[NSMenu _internalPerformActionForItemAtIndex:] + 45
    63  com.apple.AppKit              0x916fc15b -[NSMenuItem _internalPerformActionThroughMenuIfPossible] + 106
    64  com.apple.AppKit              0x91562670 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 172
    65  com.apple.AppKit              0x91392246 NSSLMMenuEventHandler + 452
    66  com.apple.HIToolbox           0x9b71cc0c _InvokeEventHandlerUPP(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*, long (*)(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)) + 36
    67  com.apple.HIToolbox           0x9b598313 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1602
    68  com.apple.HIToolbox           0x9b597790 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14H andlerCallRec + 482
    69  com.apple.HIToolbox           0x9b5ac571 SendEventToEventTarget + 76
    70  com.apple.HIToolbox           0x9b71d0d0 _ZL18SendHICommandEventmPK9HICommandmmhPKvP20OpaqueEventTargetRefS5_PP14OpaqueE ventRef + 482
    71  com.apple.HIToolbox           0x9b71d13a SendMenuCommandWithContextAndModifiers + 70
    72  com.apple.HIToolbox           0x9b78898d SendMenuItemSelectedEvent + 275
    73  com.apple.HIToolbox           0x9b5e8d79 _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 129
    74  com.apple.HIToolbox           0x9b778752 _ZL19PopUpMenuSelectCoreP8MenuData5PointdS1_tjPK4RecttmS4_S4_PK10__CFStringPP13 OpaqueMenuRefPt + 1898
    75  com.apple.HIToolbox           0x9b778a20 _HandlePopUpMenuSelection7 + 639
    76  com.apple.AppKit              0x91565aa2 _NSSLMPopUpCarbonMenu3 + 4532
    77  com.apple.AppKit              0x9198ab4c _NSPopUpCarbonMenu3 + 107
    78  com.apple.AppKit              0x91563754 -[NSCarbonMenuImpl popUpMenu:atLocation:width:forView:withSelectedItem:withFont:withFlags:withOpti ons:] + 425
    79  com.apple.AppKit              0x91787b78 -[NSPopUpButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 610
    80  com.apple.AppKit              0x91327243 -[NSControl mouseDown:] + 943
    81  com.apple.AppKit              0x912f0dcd -[NSWindow sendEvent:] + 7533
    82  com.apple.AppKit              0x91289f77 -[NSApplication sendEvent:] + 4788
    83  com.apple.iLifeKit            0x0201dc9b -[iLifeKit sendEvent:] + 55
    84  com.apple.iPhoto              0x0012c344 0xac000 + 525124
    85  com.apple.AppKit              0x914f1662 -[NSApplication _modalSession:sendEvent:] + 550
    86  com.apple.AppKit              0x914f122c -[NSApplication _realDoModalLoop:peek:] + 638
    87  com.apple.AppKit              0x914ec481 -[NSApplication _doModalLoop:peek:] + 69
    88  com.apple.AppKit              0x914f0f08 -[NSApplication runModalForWindow:] + 258
    89  com.apple.AppKit              0x91794a93 -[NSPrintPanel runModalWithPrintInfo:] + 621
    90  com.apple.AppKit              0x917929ec -[NSConcretePrintOperation runOperation] + 333
    91  com.apple.iPhoto              0x00363141 0xac000 + 2847041
    92  com.apple.CoreFoundation      0x958f2d11 -[NSObject performSelector:withObject:] + 65
    93  com.apple.AppKit              0x91329663 -[NSApplication sendAction:to:from:] + 232
    94  com.apple.AppKit              0x91329540 -[NSControl sendAction:to:] + 102
    95  com.apple.AppKit              0x91329443 -[NSCell _sendActionFrom:] + 160
    96  com.apple.AppKit              0x91328800 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2295
    97  com.apple.AppKit              0x913aba95 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 501
    98  com.apple.AppKit              0x91327243 -[NSControl mouseDown:] + 943
    99  com.apple.AppKit              0x912f0dcd -[NSWindow sendEvent:] + 7533
    100 com.apple.AppKit              0x91289f77 -[NSApplication sendEvent:] + 4788
    101 com.apple.iLifeKit            0x0201dc9b -[iLifeKit sendEvent:] + 55
    102 com.apple.iPhoto              0x0012c344 0xac000 + 525124
    103 com.apple.AppKit              0x9121bb21 -[NSApplication run] + 1007
    104 com.apple.AppKit              0x914acac5 NSApplicationMain + 1054
    105 com.apple.iPhoto              0x000bbc99 0xac000 + 64665
    106 com.apple.iPhoto              0x000bb2e5 0xac000 + 62181
    Thread 1:: Dispatch queue: com.apple.libdispatch-manager
    0   libsystem_kernel.dylib        0x9a596b5e __select_nocancel + 10
    1   libdispatch.dylib             0x96b4ecbd _dispatch_mgr_invoke + 642
    2   libdispatch.dylib             0x96b4d853 _dispatch_mgr_thread + 53
    Thread 2:
    0   libsystem_kernel.dylib        0x9a59683e __psynch_cvwait + 10
    1   libsystem_c.dylib             0x99459e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib             0x99459f7b pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation          0x997403c3 -[NSCondition waitUntilDate:] + 427
    4   com.apple.Foundation          0x997067d2 -[NSConditionLock lockWhenCondition:beforeDate:] + 294
    5   com.apple.Foundation          0x997066a6 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore           0x01dace12 -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore           0x01dabefa -[XTThread run:] + 412
    8   com.apple.Foundation          0x9970de25 -[NSThread main] + 45
    9   com.apple.Foundation          0x9970ddd5 __NSThread__main__ + 1582
    10  libsystem_c.dylib             0x99455ed9 _pthread_start + 335
    11  libsystem_c.dylib             0x994596de thread_start + 34
    Thread 3:
    0   libsystem_kernel.dylib        0x9a59683e __psynch_cvwait + 10
    1   libsystem_c.dylib             0x99459e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib             0x99459f7b pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation          0x997403c3 -[NSCondition waitUntilDate:] + 427
    4   com.apple.Foundation          0x997067d2 -[NSConditionLock lockWhenCondition:beforeDate:] + 294
    5   com.apple.Foundation          0x997066a6 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore           0x01dace12 -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore           0x01dabefa -[XTThread run:] + 412
    8   com.apple.Foundation          0x9970de25 -[NSThread main] + 45
    9   com.apple.Foundation          0x9970ddd5 __NSThread__main__ + 1582
    10  libsystem_c.dylib             0x99455ed9 _pthread_start + 335
    11  libsystem_c.dylib             0x994596de thread_start + 34
    Thread 4:
    0   libsystem_kernel.dylib        0x9a59683e __psynch_cvwait + 10
    1   libsystem_c.dylib             0x99459e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib             0x99459f7b pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation          0x997403c3 -[NSCondition waitUntilDate:] + 427
    4   com.apple.Foundation          0x997067d2 -[NSConditionLock lockWhenCondition:beforeDate:] + 294
    5   com.apple.Foundation          0x997066a6 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore           0x01dace12 -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore           0x01dabefa -[XTThread run:] + 412
    8   com.apple.Foundation          0x9970de25 -[NSThread main] + 45
    9   com.apple.Foundation          0x9970ddd5 __NSThread__main__ + 1582
    10  libsystem_c.dylib             0x99455ed9 _pthread_start + 335
    11  libsystem_c.dylib             0x994596de thread_start + 34
    Thread 5:
    0   libsystem_kernel.dylib        0x9a59683e __psynch_cvwait + 10
    1   libsystem_c.dylib             0x99459e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib             0x99459f7b pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation          0x997403c3 -[NSCondition waitUntilDate:] + 427
    4   com.apple.Foundation          0x997067d2 -[NSConditionLock lockWhenCondition:beforeDate:] + 294
    5   com.apple.Foundation          0x997066a6 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore           0x01dace12 -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore           0x01dabefa -[XTThread run:] + 412
    8   com.apple.Foundation          0x9970de25 -[NSThread main] + 45
    9   com.apple.Foundation          0x9970ddd5 __NSThread__main__ + 1582
    10  libsystem_c.dylib             0x99455ed9 _pthread_start + 335
    11  libsystem_c.dylib             0x994596de thread_start + 34
    Thread 6:
    0   libsystem_kernel.dylib        0x9a59683e __psynch_cvwait + 10
    1   libsystem_c.dylib             0x99459e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib             0x99459f7b pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation          0x997403c3 -[NSCondition waitUntilDate:] + 427
    4   com.apple.Foundation          0x997067d2 -[NSConditionLock lockWhenCondition:beforeDate:] + 294
    5   com.apple.Foundation          0x997066a6 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore           0x01dace12 -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore           0x01dabefa -[XTThread run:] + 412
    8   com.apple.Foundation          0x9970de25 -[NSThread main] + 45
    9   com.apple.Foundation          0x9970ddd5 __NSThread__main__ + 1582
    10  libsystem_c.dylib             0x99455ed9 _pthread_start + 335
    11  libsystem_c.dylib             0x994596de thread_start + 34
    Thread 7:
    0   libsystem_kernel.dylib        0x9a59683e __psynch_cvwait + 10
    1   libsystem_c.dylib             0x99459e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib             0x99459f7b pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation          0x997403c3 -[NSCondition waitUntilDate:] + 427
    4   com.apple.Foundation          0x997067d2 -[NSConditionLock lockWhenCondition:beforeDate:] + 294
    5   com.apple.Foundation          0x997066a6 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore           0x01dace12 -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore           0x01dabefa -[XTThread run:] + 412
    8   com.apple.Foundation          0x9970de25 -[NSThread main] + 45
    9   com.apple.Foundation          0x9970ddd5 __NSThread__main__ + 1582
    10  libsystem_c.dylib             0x99455ed9 _pthread_start + 335
    11  libsystem_c.dylib             0x994596de thread_start + 34
    Thread 8:
    0   libsystem_kernel.dylib        0x9a59683e __psynch_cvwait + 10
    1   libsystem_c.dylib             0x99459e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib             0x99459f7b pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation          0x997403c3 -[NSCondition waitUntilDate:] + 427
    4   com.apple.Foundation          0x997067d2 -[NSConditionLock lockWhenCondition:beforeDate:] + 294
    5   com.apple.Foundation          0x997066a6 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore           0x01dace12 -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore           0x01dabefa -[XTThread run:] + 412
    8   com.apple.Foundation          0x9970de25 -[NSThread main] + 45
    9   com.apple.Foundation          0x9970ddd5 __NSThread__main__ + 1582
    10  libsystem_c.dylib             0x99455ed9 _pthread_start + 335
    11  libsystem_c.dylib             0x994596de thread_start + 34
    Thread 9:
    0   libsystem_kernel.dylib        0x9a59683e __psynch_cvwait + 10
    1   libsystem_c.dylib             0x99459e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib             0x99459f7b pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation          0x997403c3 -[NSCondition waitUntilDate:] + 427
    4   com.apple.Foundation          0x997067d2 -[NSConditionLock lockWhenCondition:beforeDate:] + 294
    5   com.apple.Foundation          0x997066a6 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.RedRock             0x023e748f -[RKAsyncImageRenderer _backgroundRenderThread:] + 173
    7   com.apple.CoreFoundation      0x958fb1aa -[NSObject performSelector:] + 58
    8   com.apple.proxtcore           0x01db5df9 -[XTThreadSendOnlyDetached _detachedMessageHandler:] + 167
    9   com.apple.CoreFoundation      0x958f2d11 -[NSObject performSelector:withObject:] + 65
    10  com.apple.proxtcore           0x01dae22c -[XTSubscription postMessage:] + 191
    11  com.apple.proxtcore           0x01dadaef -[XTDistributor distributeMessage:] + 681
    12  com.apple.proxtcore           0x01dad313 -[XTThread handleMessage:] + 515
    13  com.apple.proxtcore           0x01dabf10 -[XTThread run:] + 434
    14  com.apple.Foundation          0x9970de25 -[NSThread main] + 45
    15  com.apple.Foundation          0x9970ddd5 __NSThread__main__ + 1582
    16  libsystem_c.dylib             0x99455ed9 _pthread_start + 335
    17  libsystem_c.dylib             0x994596de thread_start + 34
    Thread 10:
    0   libsystem_kernel.dylib        0x9a595e12 __accept + 10
    1   com.apple.iPhoto              0x004a424d 0xac000 + 4162125
    2   com.apple.iPhoto              0x004ee651 0xac000 + 4466257
    3   com.apple.iPhoto              0x004ee5be 0xac000 + 4466110
    4   libsystem_c.dylib             0x99455ed9 _pthread_start + 335
    5   libsystem_c.dylib             0x994596de thread_start + 34
    Thread 11:: com.apple.CFSocket.private
    0   libsystem_kernel.dylib        0x9a596b42 __select + 10
    1   com.apple.CoreFoundation      0x958e1e15 __CFSocketManager + 1557
    2   libsystem_c.dylib             0x99455ed9 _pthread_start + 335
    3   libsystem_c.dylib             0x994596de thread_start + 34
    Thread 12:
    0   libsystem_kernel.dylib        0x9a59683e __psynch_cvwait + 10
    1   libsystem_c.dylib             0x99459e21 _pthread_cond_wait + 827
    2   libsystem_c.dylib             0x9940a42c pthread_cond_wait$UNIX2003 + 71
    3   com.apple.Foundation          0x9970fbe8 -[NSCondition wait] + 304
    4   com.apple.iPhoto              0x000fda64 0xac000 + 334436
    5   com.apple.iPhoto              0x000fd672 0xac000 + 333426
    6   com.apple.CoreFoundation      0x958f5a9d __invoking___ + 29
    7   com.apple.CoreFoundation      0x958f59d9 -[NSInvocation invoke] + 137
    8   com.apple.RedRock             0x0240385b -[RKInvoker _invokeTarget:] + 33
    9   com.apple.RedRock             0x024145f4 -[RKInvoker _invokeTargetWithPool:] + 68
    10  com.apple.CoreFoundation      0x958f2d11 -[NSObject performSelector:withObject:] + 65
    11  com.apple.proxtcore           0x01db5df9 -[XTThreadSendOnlyDetached _detachedMessageHandler:] + 167
    12  com.apple.CoreFoundation      0x958f2d11 -[NSObject performSelector:withObject:] + 65
    13  com.apple.proxtcore           0x01dae22c -[XTSubscription postMessage:] + 191
    14  com.apple.proxtcore           0x01dadaef -[XTDistributor distributeMessage:] + 681
    15  com.apple.proxtcore           0x01dad313 -[XTThread handleMessage:] + 515
    16  com.apple.proxtcore           0x01dabf10 -[XTThread run:] + 434
    17  com.apple.Foundation          0x9970de25 -[NSThread main] + 45
    18  com.apple.Foundation          0x9970ddd5 __NSThread__main__ + 1582
    19  libsystem_c.dylib             0x99455ed9 _pthread_start + 335
    20  libsystem_c.dylib             0x994596de thread_start + 34
    Thread 13:
    0   libsystem_kernel.dylib        0x9a59683e __psynch_cvwait + 10
    1   libsystem_c.dylib             0x99459e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib             0x99459f7b pthread_cond_timedwait_relative_np + 47
    3   com.apple.CoreServices.CarbonCore 0x9279e3a7 TSWaitOnConditionTimedRelative + 178
    4   com.apple.CoreServices.CarbonCore 0x9279e11d TSWaitOnSemaphoreCommon + 490
    5   com.apple.CoreServices.CarbonCore 0x9279df2e TSWaitOnSemaphoreRelative + 24
    6   com.apple.QuickTimeComponents.component 0x9736a16a 0x96d7d000 + 6213994
    7   libsystem_c.dylib             0x99455ed9 _pthread_start + 335
    8   libsystem_c.dylib             0x994596de thread_start + 34
    Thread 14:: CVDisplayLink
    0   libsystem_kernel.dylib        0x9a59683e __psynch_cvwait + 10
    1   libsystem_c.dylib             0x99459e21 _pthread_cond_wait + 827
    2   libsystem_c.dylib             0x9940a42c pthread_cond_wait$UNIX2003 + 71
    3   com.apple.CoreVideo           0x97f120cd CVDisplayLink::runIOThread() + 945
    4   com.apple.CoreVideo           0x97f11d05 _ZL13startIOThreadPv + 160
    5   libsystem_c.dylib             0x99455ed9 _pthread_start + 335
    6   libsystem_c.dylib             0x994596de thread_start + 34
    Thread 15:: jpegdecompress_MPLoop
    0   libsystem_kernel.dylib        0x9a59683e __psynch_cvwait + 10
    1   libsystem_c.dylib             0x99459e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib             0x9940182a pthread_cond_wait + 48
    3   com.apple.QuickTimeComponents.component 0x9748c467 0x96d7d000 + 7402599
    4   libsystem_c.dylib             0x99455ed9 _pthread_start + 335
    5   libsystem_c.dylib             0x994596de thread_start + 34
    Thread 16:
    0   libsystem_kernel.dylib        0x9a59683e __psynch_cvwait + 10
    1   libsystem_c.dylib             0x99459e78 _pthread_cond_wait + 914
    2   libsystem_c.dylib             0x99459f7b pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation          0x997403c3 -[NSCondition waitUntilDate:] + 427
    4   com.apple.Foundation          0x997067d2 -[NSConditionLock lockWhenCondition:beforeDate:] + 294
    5   com.apple.Foundation          0x997066a6 -[NSConditionLock lockWhenCondition:] + 69
    6   com.apple.proxtcore           0x01dace12 -[XTMsgQueue waitForMessage] + 47
    7   com.apple.proxtcore           0x01dabefa -[XTThread run:] + 412
    8   com.apple.Foundation          0x9970de25 -[NSThread main] + 45
    9   com.apple.Foundation          0x9970ddd5 __NSThread__main__ + 1582
    10  libsystem_c.dylib             0x99455ed9 _pthread_start + 335
    11  libsystem_c.dylib             0x994596de thread_start + 34
    Thread 17:
    0   libsystem_kernel.dylib        0x9a59683e __psynch_cvwait + 10
    1   libsystem_c.dylib             0x99459e21 _pthread_cond_wait + 827
    2   libsystem_c.dylib             0x9940a42c pthread_cond_wait$UNIX2003 + 71
    3   com.apple.iPhoto              0x005acdd1 0xac000 + 5246417
    4   com.apple.CoreFoundation      0x958f2d11 -[NSObject performSelector:withObject:] + 65
    5   com.apple.proxtcore           0x01db5df9 -[XTThreadSendOnlyDetached _detachedMessageHandler:] + 167
    6   com.apple.CoreFoundation      0x958f2d11 -[NSObject performSelector:withObject:] + 65
    7   com.apple.proxtcore           0x01dae22c -[XTSubscription postMessage:] + 191
    8   com.apple.proxtcore           0x01dadaef -[XTDistributor distributeMessage:] + 681
    9   com.apple.proxtcore           0x01dad313 -[XTThread handleMessage:] + 515
    10  com.apple.proxtcore           0x01dabf10 -[XTThread run:] + 434
    11  com.apple.Foundation          0x9970de25 -[NSThread main] + 45
    12  com.apple.Foundation          0x9970ddd5 __NSThread__main__ + 1582
    13  libsystem_c.dylib             0x99455ed9 _pthread_start + 335
    14  libsystem_c.dylib             0x994596de thread_start + 34
    Thread 18:
    0   libsystem_kernel.dylib        0x9a59683e __psynch_cvwait + 10
    1   libsystem_c.dylib             0x99459e21 _pthread_cond_wait + 827
    2   libsystem_c.dylib             0x9940a42c pthread_cond_wait$UNIX2003 + 71
    3   com.apple.iPhoto              0x00175872 0xac000 + 825458
    4   com.apple.CoreFoundation      0x958f5a9d __invoking___ + 29
    5   com.apple.CoreFoundation      0x958f59d9 -[NSInvocation invoke] + 137
    6   com.apple.RedRock             0x0240385b -[RKInvoker _invokeTarget:] + 33
    7   com.apple.RedRock             0x024145f4 -[RKInvoker _invokeTargetWithPool:] + 68
    8   com.apple.CoreFoundation      0x958f2d11 -[NSObject performSelector:withObject:] + 65
    9   com.apple.proxtcore           0x01db5df9 -[XTThreadSendOnlyDetached _detachedMessageHandler:] + 167
    10  com.apple.CoreFoundation      0x958f2d11 -[NSObject performSelector:withObject:] + 65
    11  com.apple.proxtcore           0x01dae22c -[XTSubscription postMessage:] + 191
    12  com.apple.proxtcore           0x01dadaef -[XTDistributor distributeMessage:] + 681
    13  com.apple.proxtcore           0x01dad313 -[XTThread handleMessage:] + 515
    14  com.apple.proxtcore           0x01dabf10 -[XTThread run:] + 434
    15  com.apple.Foundation          0x9970de25 -[NSThread main] + 45
    16  com.apple.Foundation          0x9970ddd5 __NSThread__main__ + 1582
    17  libsystem_c.dylib             0x99455ed9 _pthread_start + 335
    18  libsystem_c.dylib             0x994596de thread_start + 34
    Thread 19:: Dispatch queue: com.apple.root.default-priority
    0   libsystem_kernel.dylib        0x9a594c76 semaphore_timedwait_trap + 10
    1   libdispatch.dylib             0x96b50a55 _dispatch_semaphore_wait_slow + 274
    2   libdispatch.dylib             0x96b50ab4 dispatch_semaphore_wait + 36
    3   com.apple.RemoteViewServices  0x9463a725 __54-[NSRemoteSavePanel _runOrderingOperationWithContext:]_block_invoke_0345 + 79
    4   libdispatch.dylib             0x96b4cfbd _dispatch_call_block_and_release + 15
    5   libdispatch.dylib             0x96b4e01c _dispatch_worker_thread2 + 231
    6   libsystem_c.dylib             0x99457b24 _pthread_wqthread + 346
    7   libsystem_c.dylib             0x994596fe start_wqthread + 30
    Thread 20:
    0   libsystem_kernel.dylib        0x9a59702e __workq_kernreturn + 10
    1   libsystem_c.dylib             0x99457ccf _pthread_wqthread + 773
    2   libsystem_c.dylib             0x994596fe start_wqthread + 30
    Thread 21:
    0   libsystem_kernel.dylib        0x9a59702e __workq_kernreturn + 10
    1   libsystem_c.dylib             0x99457ccf _pthread_wqthread + 773
    2   libsystem_c.dylib             0x994596fe start_wqthread + 30
    Thread 22:
    0   libsystem_kernel.dylib        0x9a59683e __psynch_cvwait + 10
    1   libsystem_c.dylib             0x99459e21 _pthread_cond_wait + 827
    2   libsystem_c.dylib             0x9940a42c pthread_cond_wait$UNIX2003 + 71
    3   com.apple.iPhoto              0x005acdd1 0xac000 + 5246417
    4   com.apple.CoreFoundation      0x958f2d11 -[NSObject performSelector:withObject:] + 65
    5   com.apple.proxtcore           0x01db5df9 -[XTThreadSendOnlyDetached _detachedMessageHandler:] + 167
    6   com.apple.CoreFoundation      0x958f2d11 -[NSObject performSelector:withObject:] + 65
    7   com.apple.proxtcore           0x01dae22c -[XTSubscription postMessage:] + 191
    8   com.apple.proxtcore           0x01dadaef -[XTDistributor distributeMessage:] + 681
    9   com.apple.proxtcore           0x01dad313 -[XTThread handleMessage:] + 515
    10  com.apple.proxtcore           0x01dabf10 -[XTThread run:] + 434
    11  com.apple.Foundation          0x9970de25 -[NSThread main] + 45
    12  com.apple.Foundation          0x9970ddd5 __NSThread__main__ + 1582
    13  libsystem_c.dylib             0x99455ed9 _pthread_start + 335
    14  libsystem_c.dylib             0x994596de thread_start + 34
    Thread 23:
    0   libsystem_kernel.dylib        0x9a59683e __psynch_cvwait + 10
    1   libsystem_c.dylib             0x99459e21 _pthread_cond_wait + 827
    2   libsystem_c.dylib             0x9940a42c pthread_cond_wait$UNIX2003 + 71
    3   com.apple.iPhoto              0x00175872 0xac000 + 825458
    4   com.apple.CoreFoundation      0x958f5a9d __invoking___ + 29
    5   com.apple.CoreFoundation      0x958f59d9 -[NSInvocation invoke] + 137
    6   com.apple.RedRock             0x0240385b -[RKInvoker _invokeTarget:] + 33
    7   com.apple.RedRock             0x024145f4 -[RKInvoker _invokeTargetWithPool:] + 68
    8   com.apple.CoreFoundation      0x958f2d11 -[NSObject performSelector:withObject:] + 65
    9   com.apple.proxtcore           0x01db5df9 -[XTThreadSendOnlyDetached _detachedMessageHandler:] + 167
    10  com.apple.CoreFoundation      0x958f2d11 -[NSObject performSelector:withObject:] + 65
    11  com.apple.proxtcore           0x01dae22c -[XTSubscription postMessage:] + 191
    12  com.apple.proxtcore           0x01dadaef -[XTDistributor distributeMessage:] + 681
    13  com.apple.proxtcore           0x01dad313 -[XTThread handleMessage:] + 515
    14  com.apple.proxtcore           0x01dabf10 -[XTThread run:] + 434
    15  com.apple.Foundation          0x9970de25 -[NSThread main] + 45
    16  com.apple.Foundation          0x9970ddd5 __NSThread__main__ + 1582
    17  libsystem_c.dylib             0x99455ed9 _pthread_start + 335
    18  libsystem_c.dylib             0x994596de thread_start + 34
    Thread 24:
    0   libsystem_kernel.dylib        0x9a59683e __psynch_cvwait + 10
    1   libsystem_c.dylib             0x99459e21 _pthread_cond_wait + 827
    2   libsystem_c.dylib             0x9940a42c pthread_cond_wait$UNIX2003 + 71
    3   com.apple.iPhoto              0x001bb758 0xac000 + 1111896
    4   com.apple.CoreFoundation      0x958f5a9d __invoking___ + 29
    5   com.apple.CoreFoundation      0x958f59d9 -[NSInvocation invoke] + 137
    6   com.apple.RedRock             0x0240385b -[RKInvoker _invokeTarget:] + 33
    7   com.apple.RedRock             0x024145f4 -[RKInvoker _invokeTargetWithPool:] + 68
    8   com.apple.CoreFoundation      0x958f2d11 -[NSObject performSelector:withObject:] + 65
    9   com.apple.proxtcore           0x01db5df9 -[XTThreadSendOnlyDetached _detachedMessageHandler:] + 167
    10  com.apple.CoreFoundation      0x958f2d11 -[NSObject performSelector:withObject:] + 65
    11  com.apple.proxtcore           0x01dae22c -[XTSubscription postMessage:] + 191
    12  com.apple.proxtcore           0x01dadaef -[XTDistributor distributeMessage:] + 681
    13  com.apple.proxtcore           0x01dad313 -[XTThread handleMessage:] + 515
    14  com.apple.proxtcore           0x01dabf10 -[XTThread run:] + 434
    15  com.apple.Foundation          0x9970de25 -[NSThread main] + 45
    16  com.apple.Foundation          0x9970ddd5 __NSThread__main__ + 1582
    17  libsystem_c.dylib             0x99455ed9 _pthread_start + 335
    18  libsystem_c.dylib             0x994596de thread_start + 34
    Thread 25:: com.apple.appkit-heartbeat
    0   libsystem_kernel.dylib        0x9a596bb2 __semwait_signal + 10
    1   libsystem_c.dylib             0x9940a7b9 nanosleep$UNIX2003 + 187
    2   libsystem_c.dylib             0x9940a558 usleep$UNIX2003 + 60
    3   com.apple.AppKit              0x914646da -[NSUIHeartBeat _heartBeatThread:] + 2399
    4   com.apple.Foundation          0x9970de25 -[NSThread main] + 45
    5   com.apple.Foundation          0x9970ddd5 __NSThread__main__ + 1582
    6   libsystem_c.dylib             0x99455ed9 _pthread_start + 335
    7   libsystem_c.dylib             0x994596de thread_start + 34
    Thread 26:
    0   libsystem_kernel.dylib        0x9a59702e __workq_kernreturn + 10
    1   libsystem_c.dylib             0x99457ccf _pthread_wqthread + 773
    2   libsystem_c.dylib             0x994596fe start_wqthread + 30
    Thread 27:
    0   libsystem_kernel.dylib        0x9a59702e __workq_kernreturn + 10
    1   libsystem_c.dylib             0x99457ccf _pthread_wqthread + 773
    2   libsystem_c.dylib             0x994596fe start_wqthread + 30
    Thread 28:
    0   libsystem_kernel.dylib        0x9a59702e __workq_kernreturn + 10
    1   libsystem_c.dylib             0x99457ccf _pthread_wqthread + 773
    2   libsystem_c.dylib             0x994596fe start_wqthread + 30
    Thread 0 crashed with X86 Thread State (32-bit):
      eax: 0x00000540  ebx: 0x15675480  ecx: 0x00000150  edx: 0x00000004
      edi: 0x0000ffff  esi: 0xc8fc0000  ebp: 0xc009f508  esp: 0xc009f460
       ss: 0x00000023  efl: 0x00010246  eip: 0x93976aec   cs: 0x0000001b
       ds: 0x00000023   es: 0x00000023   fs: 0x00000000   gs: 0x0000000f
      cr2: 0xc8fc0000
    Logical CPU: 0
    Binary Images:
       0xac000 -   0xd98feb  com.apple.iPhoto (9.4.2 - 9.4.2) <3AC6405B-33E2-3184-9F20-4C9CC5256A3A> /Applications/iPhoto.app/Contents/MacOS/iPhoto
      0xf2a000 -  0x100afe7  org.python.python (2.6.7 - 2.6.7) <61DBA92A-C39A-3A52-86F2-59CF9D310CB4> /System/Library/Frameworks/Python.framework/Versions/2.6/Python
    0x1056000 -  0x105efff  com.apple.PhotoFoundation (1.0 - 10.17) <D48FDC95-21FC-328C-9F4F-89C28A260C2D> /Applications/iPhoto.app/Contents/Frameworks/PhotoFoundation.framework/Versions /A/PhotoFoundation
    0x10cf000 -  0x12abffb  com.apple.geode (1.5.3 - 270.7) <DFD97416-FD86-3AF1-BFF0-79A47DADE257> /Applications/iPhoto.app/Contents/Frameworks/Geode.framework/Versions/A/Geode
    0x133a000 -  0x133fff7  com.apple.iLifePhotoStreamConfiguration (3.4 - 2.5) <65A74F18-5020-31EC-B7E9-EBC14E2D9CA1> /Applications/iPhoto.app/Contents/Frameworks/iLifePhotoStreamConfiguration.fram ework/Versions/A/iLifePhotoStreamConfiguration
    0x1347000 -  0x1376ff7  com.apple.iLifeAssetManagement (2.7 - 40.34) <2B65BA8A-2C25-360D-B50E-0A9EECA1CE57> /Applications/iPhoto.app/Contents/Frameworks/iLifeAssetManagement.framework/Ver sions/A/iLifeAssetManagement
    0x139b000 -  0x13c2ff3  com.apple.iPhoto.Tessera (1.1 - 70.18) <F190FD9B-9CC9-3D4D-9744-113F7CA36097> /Applications/iPhoto.app/Contents/Frameworks/Tessera.framework/Versions/A/Tesse ra
    0x13d6000 -  0x13faffb  com.apple.iPhoto.Tellus (1.3 - 70.18) <768463A7-60B4-3D50-B36B-D6E5AFA43DC9> /Applications/iPhoto.app/Contents/Frameworks/Tellus.framework/Versions/A/Tellus
    0x1411000 -  0x141cfff  com.apple.iphoto.AccountConfigurationPlugin (1.2 - 1.2) <86E53BF3-BCAD-36F9-999B-013E359EF079> /Applications/iPhoto.app/Contents/Frameworks/AccountConfigurationPlugin.framewo rk/Versions/A/AccountConfigurationPlugin
    0x1427000 -  0x143cffb  com.apple.iLifeFaceRecognition (1.0 - 30.11) <4A781CBF-9764-3531-91E0-94C5B4DFCFDF> /Applications/iPhoto.app/Contents/Frameworks/iLifeFaceRecognition.framework/Ver sions/A/iLifeFaceRecognition
    0x1448000 -  0x1474ffb  com.apple.DiscRecordingUI (6.0.4 - 6040.4.1) <F3EDDD79-611F-3ECC-9B78-0AB8BAC0D446> /System/Library/Frameworks/DiscRecordingUI.framework/Versions/A/DiscRecordingUI
    0x1490000 -  0x1492fff  com.apple.ExceptionHandling (1.5 - 10) <6CA9446C-7EF9-35EE-BDF2-AA8D51E93E9E> /System/Library/Frameworks/ExceptionHandling.framework/Versions/A/ExceptionHand ling
    0x149b000 -  0x14a6ff7  com.apple.UpgradeChecker (9.2 - 9.2) <D34CC218-8200-34D7-816C-B747EE4BF5F7> /Applications/iPhoto.app/Contents/Frameworks/UpgradeChecker.framework/Versions/ A/UpgradeChecker
    0x14b2000 -  0x184bff3  com.apple.iLifeSlideshow (3.1 - 1151.4) <B03978EF-A395-30D4-833B-7C474E1F5F12> /Applications/iPhoto.app/Contents/Frameworks/iLifeSlideshow.framework/Versions/ A/iLifeSlideshow
    0x1948000 -  0x1bd9ff3  com.apple.iLifePageLayout (1.3 - 200.9) <067ACE80-5B73-39EE-850B-E392F6573AAC> /Applications/iPhoto.app/Contents/Frameworks/iLifePageLayout.framework/Versions /A/iLifePageLayout
    0x1cb5000 -  0x1d4cff7  com.apple.MobileMe (13 - 1.0.4) <5E6C6DEC-1F48-358F-8117-40FAAEB8AFAD> /Applications/iPhoto.app/Contents/Frameworks/MobileMe.framework/Versions/A/Mobi leMe
    0x1da8000 -  0x1e10ff3  com.apple.proxtcore (1.4.1 - 250.56) <BBADA727-FB78-32AF-8D45-4498F68343A7> /Applications/iPhoto.app/Contents/Frameworks/ProXTCore.framework/Versions/A/Pro XTCore
    0x1e52000 -  0x1f50ff7  com.apple.iLifeSQLAccess (1.7.1 - 60.5) <845C6292-8EC2-3B4A-8E2E-8D98986148C2> /Applications/iPhoto.app/Contents/Frameworks/iLifeSQLAccess.framework/Versions/ A/iLifeSQLAccess
    0x1f99000 -  0x1fc4ffb  com.apple.ProUtils (1.1 - 200.36) <E286BD1F-0BE8-3151-B758-89870AB4AC89> /Applications/iPhoto.app/Contents/Frameworks/ProUtils.framework/Versions/A/ProU tils
    0x1fde000 -  0x2049fff  com.apple.iLifeKit (1.3.1 - 156.11) <F93283F4-046D-3653-9607-8B0F850E6318> /Applications/iPhoto.app/Contents/Frameworks/iLifeKit.framework/Versions/A/iLif eKit
    0x208e000 -  0x22b6ff7  com.apple.prokit (7.2.3 - 1823) <0FEDF2D7-F31A-36F2-91A9-C03877B0CB46> /System/Library/PrivateFrameworks/ProKit.framework/Versions/A/ProKit
    0x23c4000 -  0x28f0ffb  com.apple.RedRock (1.9.4 - 310.33) <548258F5-3AE9-3AD4-B986-A9674D131164> /Applications/iPhoto.app/Contents/Frameworks/RedRock.framework/Versions/A/RedRo ck
    0x2aee000 -  0x2b04ffb  com.apple.AOSAccounts (1.0.2 - 1.0.71) <13763832-1B2B-32E8-95BC-C23A627E6DD4> /System/Library/PrivateFrameworks/AOSAccounts.framework/Versions/A/AOSAccounts
    0x2b19000 -  0x2b53ff3  com.apple.Ubiquity (1.1 - 210.2) <F8426ABA-BB3F-3A48-BF4E-9A0F6C12634F> /System/Library/PrivateFrameworks/Ubiquity.framework/Versions/A/Ubiquity
    0x2b6e000 -  0x2b6eff6  com.apple.SafariDAVNotifier (1.1.1 - 1) <DE95A56E-E2C8-3D96-B628-4DC6FA6CDD39> /System/Library/PrivateFrameworks/BookmarkDAV.framework/Versions/A/Frameworks/S afariDAVNotifier.framework/Versions/A/SafariDAVNotifier
    0x2b74000 -  0x2b95ff7  com.apple.ChunkingLibrary (1.0 - 127.2) <8C1C8488-71E4-3C13-AF75-95CF06C040A3> /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/Chunking Library
    0x2ba1000 -  0x2ba3fff  com.apple.LibraryRepair (1.0 - 1) <8D2DE423-2226-395A-9D90-3C43911F8613> /System/Library/PrivateFrameworks/LibraryRepair.framework/Versions/A/LibraryRep air
    0x2bab000 -  0x2c05fff  com.apple.proapps.MIO (1.0.6 - 512) <8321DF77-4AD8-376B-9465-83F471AA61D2> /Applications

    It crashes when I down load pictures and then try to use them. Converting a jpg to a pdf usually triggers a crash.
    Are you using the "Print to PDF" dialogue to convert your jpegs to pdf?
    In addition to OT's test, you might also check, if using a different "Theme" for printing will avoid the crash:
    14  com.apple.AppKit               0x912a52e4 _NSDrawThemeBackground + 1429
    15  com.apple.AppKit               0x9145edeb -[NSThemeFrame
    You crashlog shows, that iPhoto crashes, when trying to draw the "Print" theme background. There could be a problem wit the installed themes. Can you convert any jpegs to pdf, not only the jpegs downloaded from your iPad?
    Léonie

Maybe you are looking for