The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. July 29, 2010, 07:57:35 PM

Login with username, password and session length


Pages: 1 [2]
  Print  
Author Topic: ajax and curl optimized  (Read 1090 times)
serialnoob
Journeyman
***
Offline Offline

Posts: 64


View Profile
« Reply #15 on: March 07, 2010, 09:02:11 AM »

After testing a few hours I realized that going very low with usleep in this particular situation might not be a brilliant idea.

I guess most here have burnt a mother board one day. the sad thing about it is that in most instances you have to throw it away because of this one 10 cents capacitor (the actual burned thing)  that cannot be easily unsolder-ed.

While running curl_multi with usleep(100), I could hear a small whistle in the box around the box which is not usually a good sign re the above.

Paranoid? definitely, but setting  usleep(2500) => flat cpu, no noise !
Logged
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 8649



View Profile
« Reply #16 on: March 08, 2010, 11:42:36 AM »

 Shocked wait ... you change the wait length a usleep and you get/don't get a whistle? Are you sure it's not the fan, responding to more/less work on the proc?
Logged

It's the things you learn after you know it all that really count.
-John Wooden
nutballs
Administrator
Lifer
*****
Online Online

Posts: 5296


DAMN YOU!!!!!!!


View Profile
« Reply #17 on: March 08, 2010, 01:27:54 PM »

this reminds me of a funny story from work long ago when I had coworkers and such...

Programmer would get pissed because his computer would make noise whenever he worked on his big ass visio document. But rarely when working on anything else. It was HUGE. So to see large chunks of it you had to be zoomed way out, making everything small. So... he had to lean in to see the text...

he leaned on his desk to get closer.

Basically, he was tipping the computer just enough, so a cable was touching a fan inside, making a noise (granted it was a very strange sounding noise). Took him months to figure it out.

Tunnel vision is funny.
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!