00:02:12  * Leomjoined
00:08:16  * dapjoined
00:09:42  * dshaw_joined
00:11:19  * Leomquit (Ping timeout: 246 seconds)
00:12:27  <CIA-108>node: Ben Noordhuis v0.8 * raa0650f / (lib/net.js test/simple/test-cluster-net-listen.js): cluster: fix libuv assert in net.listen() - http://git.io/bh2AEw
00:23:45  * ericktjoined
00:27:22  <joeandaverde>clearing an array by setting length to zero?. does that seem bad or an efficient use of javascript?
00:33:39  * btraskquit (Ping timeout: 252 seconds)
00:35:01  * blackorzarjoined
00:40:32  <bnoordhuis>joeandaverde: probably won't quite work as you expect it to
00:40:37  <bnoordhuis>use slice() or splice()
00:41:56  <joeandaverde>bnoordhuis: my expectations are to efficiently keep track of a small set of characters
00:42:10  <joeandaverde>when i no longer need that set and need to start anew.
00:42:27  <bnoordhuis>joeandaverde: a = []
00:43:12  <joeandaverde>that would require creating a new array. My question really is a = [] or a.length = 0 ? which is more efficient?
00:44:21  <bnoordhuis>joeandaverde: a.splice(0)
00:44:38  <bnoordhuis>a.length = 0 is a minor sin
00:44:53  <joeandaverde>bnoordhuis: yeah, it did feel sinful
00:45:22  <bnoordhuis>performance characteristics of a = [] and a.splice(0) aren't wildly different btw, pick what reads best
00:49:01  * hzjoined
00:51:19  <joeandaverde>http://www.jsperf.com
00:52:36  <joeandaverde>i'm not sure i did this right but here it is: http://jsperf.com/array-emptying-length
00:53:30  * hzquit (Client Quit)
00:55:58  <dap>bnoordhuis: do you know if there is any way, however indirect, to get from an HTTP server request object to the underlying file descriptor number?
00:56:23  <dap>The DTrace provider uses the fd as a unique identifier for the duration of the request, but I think that hasn't worked since 0.6
00:56:42  <bnoordhuis>dap: the fd is not exposed in js land
00:56:56  <dap>bnoordhuis: Okay. Is there anything else we could use as an identifier?
00:57:22  * ericktquit (Quit: erickt)
00:57:25  <bnoordhuis>dap: in pure js? not really unless you monkey-patch lib/net.js
00:57:43  <dap>What would I add, if I did? The fd?
00:57:55  <bnoordhuis>no, some monotonically increasing counter
00:58:14  <dap>Okay.
00:58:44  <dap>I think I'd need to modify http.js, because the whole point is to be able to correlate the request with the response.
00:58:56  <dap>Sounds like this will be a little more involved.
00:59:05  * brsonquit (Ping timeout: 272 seconds)
00:59:17  <dap>I think I'll revisit next week :)
00:59:50  <bnoordhuis>joeandaverde: hah, splice(0) is slowest now?
01:01:16  <joeandaverde>if i did that right
01:01:33  <joeandaverde>i'm not 100% sure about that "setup" method
01:03:23  <dap>bnoordhuis: thanks.
01:03:24  * dapquit (Quit: Leaving.)
01:15:00  * ericktjoined
01:28:48  <CIA-108>libuv: Ben Noordhuis master * rbe10324 / (17 files in 5 dirs): Merge branch 'v0.8' (+24 more commits...) - http://git.io/MJxd1w
01:30:44  * travis-cijoined
01:30:44  <travis-ci>[travis-ci] joyent/libuv#503 (master - be10324 : Ben Noordhuis): The build is still failing.
01:30:44  <travis-ci>[travis-ci] Change view : https://github.com/joyent/libuv/compare/912348261e68...be1032431d50
01:30:44  <travis-ci>[travis-ci] Build details : http://travis-ci.org/joyent/libuv/builds/1979905
01:30:44  * travis-cipart
01:32:59  * dshaw_quit (Quit: Leaving.)
01:49:36  * kevinswiberjoined
01:50:35  <ryah>ircretary: tell dap that the uv_handle associated with a request is more or less its fd
01:50:35  <ircretary>ryah: I'll be sure to tell dap
01:50:52  <ryah>ircretary: the pointer to that object can uniquely identify the connection
01:50:53  <ircretary>ryah: I'm not sure what to do with that command. Ask for help in PM.
01:51:02  <ryah>ircretary: tell dap the pointer to that object can uniquely identify the connection
01:51:03  <ircretary>ryah: I'll be sure to tell dap
01:51:38  * AvianFluchanged nick to TheProfessor
01:51:48  <ryah>ircretary: tell dap req.connection._handle i think
01:51:48  <ircretary>ryah: I'll be sure to tell dap
01:51:51  * TheProfessorchanged nick to AvianFlu
02:13:15  * blackorzarquit (Ping timeout: 240 seconds)
02:34:05  * bnoordhuisquit (Ping timeout: 272 seconds)
02:54:06  * avalanche123quit (Quit: Computer has gone to sleep.)
03:25:31  * charliesomejoined
03:37:31  * blackorzarjoined
04:01:44  * kevinswiberquit (Remote host closed the connection)
04:01:44  * brsonjoined
04:35:55  <joeandaverde>jeez
04:37:34  <joeandaverde>what can possibly be faster about this only half done http parser implementation? Any suggestions are greatly appreciated. https://github.com/joeandaverde/node-http-parser-js/blob/rewrite/HttpParser.js
04:38:01  <joeandaverde>it's performing at about 60% of the http_parser.c implementation
04:38:09  <joeandaverde>and it's not feature complete
05:13:25  * joeandaverdequit (Ping timeout: 252 seconds)
05:20:47  * joeandaverdejoined
05:34:41  * brsonquit (Ping timeout: 252 seconds)
05:36:17  * brsonjoined
05:41:05  <tjfontaine>joeandaverde: did you run with --prof to see where you're spending time?
05:43:46  * dshaw_joined
06:07:23  * joeandaverdequit (Ping timeout: 244 seconds)
06:56:56  * Leomjoined
07:03:26  * brsonquit (Read error: Connection reset by peer)
07:13:41  * dshaw_quit (Quit: Leaving.)
07:13:45  * paddybyersjoined
07:29:57  * dshaw_joined
07:39:52  * Leomquit (Ping timeout: 244 seconds)
07:45:48  * Leomjoined
07:57:05  * mikealjoined
08:02:52  * rendarjoined
08:05:46  * joeandaverdejoined
08:06:43  * AlbireoXchanged nick to AlbireoX`Away
08:14:34  * Leomquit (Ping timeout: 240 seconds)
08:23:54  * joeandaverdequit (Ping timeout: 240 seconds)
08:38:53  * hzjoined
08:43:17  * piscisaureus_joined
08:51:32  * `3rdEdenjoined
08:56:37  * hzquit (Ping timeout: 272 seconds)
08:56:52  * mmalecki[vodka]changed nick to mmalecki
08:59:39  * Leomjoined
09:00:30  * TheJHjoined
09:04:06  * ericktquit (Quit: erickt)
09:06:02  * ericktjoined
09:08:13  * ericktquit (Client Quit)
09:15:38  * piscisaureus_quit (Ping timeout: 255 seconds)
09:19:34  * blackorzarquit (Ping timeout: 264 seconds)
09:33:38  * Leomquit (Ping timeout: 255 seconds)
09:35:34  * Leomjoined
09:35:58  * avalanche123joined
09:36:27  * dshaw_quit (Quit: Leaving.)
09:54:41  * paddybyersquit (Quit: paddybyers)
09:58:17  * Leom_joined
09:58:51  * Leomquit (Ping timeout: 255 seconds)
10:19:00  * Leom_quit (Ping timeout: 244 seconds)
10:21:45  * joeandaverdejoined
10:26:25  * piscisaureus_joined
10:44:55  * `3rdEdenquit (Quit: Leaving...)
10:45:30  * avalanche123quit (Quit: Computer has gone to sleep.)
10:49:17  * joeandaverdequit (Ping timeout: 246 seconds)
11:15:55  * charliesomequit (Quit: Textual IRC Client: www.textualapp.com)
11:35:37  <CIA-108>node: koichik v0.8 * r72bc4dc / (lib/assert.js test/simple/test-assert.js): assert: fix throws() throws an error without message property - http://git.io/ya9TPA
11:40:45  * paddybyersjoined
11:46:06  * paddybyersquit (Quit: paddybyers)
11:50:34  * hzjoined
11:50:48  * Leomjoined
12:11:03  * TheJHquit (Ping timeout: 272 seconds)
12:12:34  * chobi_e_changed nick to chobi_e
12:18:33  * chobi_echanged nick to chobi_e_
12:24:01  * Leomquit (Ping timeout: 244 seconds)
12:33:41  * TheJHjoined
12:42:32  * hzquit (Read error: Connection reset by peer)
12:50:45  * abraxasquit (Remote host closed the connection)
13:02:45  * txdvquit (Ping timeout: 252 seconds)
13:04:19  * txdvjoined
13:20:52  * piscisaureus_quit (Ping timeout: 244 seconds)
13:27:08  * Leomjoined
13:49:06  * piscisaureus_joined
13:49:35  * piscisaureus_quit (Client Quit)
14:00:45  * beachdogquit (Read error: Connection reset by peer)
14:00:46  * beachdogjoined
14:05:49  * benviequit (Ping timeout: 244 seconds)
14:35:11  * Leomquit (Quit: Leaving)
14:51:12  * abraxasjoined
14:55:39  * abraxasquit (Ping timeout: 246 seconds)
15:03:04  * `3rdEdenjoined
15:56:22  * benviejoined
15:58:18  * chobi_e_changed nick to chobi_e
16:05:26  * bnoordhuisjoined
16:10:28  * `3rdEdenquit (Quit: Leaving...)
16:18:04  * joeandaverdejoined
16:30:37  * dominictarrquit (Remote host closed the connection)
16:31:43  * chobi_echanged nick to chobi_e_
16:56:17  * mikealquit (Quit: Leaving.)
17:07:10  * bnoordhuisquit (Ping timeout: 244 seconds)
17:19:50  * ericktjoined
17:29:43  * dapjoined
17:41:27  * avalanche123joined
17:42:35  * stagasjoined
17:45:47  * dapquit (Quit: Leaving.)
17:48:24  * mikealjoined
18:15:36  * piscisaureus_joined
18:16:14  <piscisaureus_>ircretary: tell joandaverde Try hard-coding constants, e.g. `3` instead of `states.RESPONE_DONE`.
18:16:14  <ircretary>piscisaureus_: I'll be sure to tell joandaverde
18:16:37  <piscisaureus_>ircretary: tell joeandaverde Try hard-coding constants, e.g. `3` instead of `states.RESPONE_DONE`.
18:16:38  <ircretary>piscisaureus_: I'll be sure to tell joeandaverde
18:26:01  * stagasquit (Quit: Bye)
18:37:36  * avalanche123quit (Quit: Computer has gone to sleep.)
18:39:05  * dapjoined
18:40:01  * stagasjoined
18:44:54  * mikealquit (Quit: Leaving.)
18:45:59  * `3rdEdenjoined
18:48:25  * mikealjoined
18:52:49  * piscisaureus_quit (Quit: ~ Trillian Astra - www.trillian.im ~)
18:52:54  <isaacs>joeandaverde: i'd recommend trying to not use a giant while/switch
18:53:33  <isaacs>joeandaverde: you might actually get slightly better performance by having small functions that you call instead of putting all the logic inline.
18:58:20  * toothrotquit (Read error: Connection reset by peer)
18:59:55  * toothrjoined
19:02:41  * ericktquit (Quit: erickt)
19:04:58  <mitsuhiko>the dependency on CoreServices is weird
19:06:07  <mitsuhiko>the only function used from it *seems* to be AbsoluteToNanoseconds
19:06:15  <mitsuhiko>from the name it sounds like something libuv could reimplement
19:06:41  <mitsuhiko>oh never mind. that's apparently a timing function
19:08:23  * avalanche123joined
19:10:13  * dapquit (Quit: Leaving.)
19:13:11  <joeandaverde>wow sorry i didn't see your responses! thanks for the input!
19:15:37  * toothrquit (Changing host)
19:15:38  * toothrjoined
19:16:19  <joeandaverde>isaacs: I will try smaller functions instead of the straight forward while/switch method
19:23:31  <joeandaverde>ircretary: tell piscisaureus_ thank you!
19:23:31  <ircretary>joeandaverde: I'll be sure to tell piscisaureus_
19:23:41  <joeandaverde>ircretary: tell piscisaureus thank you!
19:23:41  <ircretary>joeandaverde: I'll be sure to tell piscisaureus
19:24:06  <joeandaverde>feature request for ircretary, support regex
19:24:08  <joeandaverde>for names
19:48:47  * AlbireoX`Awaychanged nick to AlbireoX
20:05:23  * dshaw_joined
20:08:29  * stephankquit (Quit: *Poof!*)
20:13:23  * brsonjoined
20:28:35  * AvianFluquit (Quit: Leaving)
20:38:45  * `3rdEdenquit (Quit: Leaving...)
20:42:51  * hzjoined
20:45:29  * joeandaverdequit (Ping timeout: 252 seconds)
20:56:05  * dshaw_quit (Ping timeout: 272 seconds)
20:57:16  * avalanche123quit (Quit: Computer has gone to sleep.)
21:06:21  * mikealquit (Quit: Leaving.)
21:24:43  * avalanche123joined
21:26:17  * avalanche123quit (Read error: Connection reset by peer)
21:31:15  * avalanche123joined
21:37:43  * avalanche123quit (Quit: Computer has gone to sleep.)
21:42:13  * AvianFlujoined
21:42:47  * mikealjoined
21:51:03  * beachdogquit (Remote host closed the connection)
21:59:22  * `3rdEdenjoined
21:59:25  * avalanche123joined
22:00:15  * `3rdEdenquit (Client Quit)
22:09:01  * toothrchanged nick to toothrot
22:12:33  * hzquit
22:21:52  * rendarquit
22:24:07  * paddybyersjoined
22:24:51  * TheJHquit (Ping timeout: 252 seconds)
22:36:20  * chobi_e_changed nick to chobi_e
22:39:21  * chobi_echanged nick to chobi_e_
22:44:23  * brsonquit (Ping timeout: 272 seconds)
22:49:37  * mikealquit (Quit: Leaving.)
22:54:08  * paddybyersquit (Quit: paddybyers)
22:56:45  * mikealjoined
23:01:05  * avalanche123quit (Quit: Computer has gone to sleep.)
23:28:03  * brsonjoined
23:43:04  * stagasquit (Quit: ChatZilla 0.9.88-rdmsoft [XULRunner 1.9.0.17/2009122204])
23:43:18  * joeandaverdejoined
23:56:09  * avalanche123joined