01:11:01  * xan_quit (Ping timeout: 246 seconds)
01:14:18  * alippaijoined
01:17:34  <alippai>hi, can somebody help me with CPU profiling in Chrome? I can't get whats wrong with my code in Chrome's JS engine?
01:18:07  <alippai>I'm rewriting a Zlib inflate implementation and I'm getting weird results: http://collabshot.com/show/UA0pCk
01:18:37  <alippai>the CPU profile says: http://collabshot.com/show/iRgUNK
01:20:37  * c4milojoined
01:34:27  * seventhquit (Ping timeout: 252 seconds)
01:58:25  * c4miloquit (Remote host closed the connection)
03:12:35  * c4milojoined
04:33:28  * c4miloquit (Remote host closed the connection)
05:52:58  <alippai>okay, I've managed to get V8 logs from Google chrome, how should I read it?
05:53:17  <alippai>run it with --trace-opt --trace-deopt
06:10:57  <lummox>alippai: There is a set of articles about optimizing for V8. They might be helpful: http://floitsch.blogspot.de/2012/04/optimizing-for-v8-polymorphic-calls-in.html And there is another list: http://mrale.ph/blog/2011/12/18/v8-optimization-checklist.html
06:11:59  <alippai>http://codeshare.io/6zj4g i get this output
06:14:09  <alippai>lummox: i'll check that, however the functions I call are not polymorphic (i hope :))
06:14:12  <alippai>ty
06:21:37  <lummox>Try this in V8: /(x*)*y/.test('xxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
06:25:39  <alippai>lummox: it!s pretty slow, however i can't see output for that
06:28:52  <alippai>lummox: mybad, http://codeshare.io/VoUvM
06:31:35  <lummox>for what code is it
06:32:08  <alippai>for: /(x*)*y/.test('xxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
06:32:27  <lummox>oh, ok :D
06:32:35  <alippai>i've just created a html file with content <script>/(x*)*y/.test('xxxxxxxxxxxxxxxxxxxxxxxxxxxxx')</script>
06:32:50  <alippai>and run it through the traced chrome :)
06:33:21  <lummox>Here you can see why it is slow. That's the sequences of positions accessed in 'xxxx..' to check for a match: http://pastebin.com/3ULbjvtN
06:33:44  <lummox>exponential in 'xxx..'.length
06:34:03  <alippai>yeah
06:52:37  * [p_q]quit (Remote host closed the connection)
06:53:23  * [p_q]joined
06:54:11  * nat3quit (Remote host closed the connection)
06:54:45  * nat3joined
07:58:03  * lummoxquit (Ping timeout: 260 seconds)
07:58:19  * lummoxjoined
08:10:23  * jonaslundquit (Remote host closed the connection)
08:11:30  * jonaslundjoined
09:11:09  * jaseemabidjoined
09:29:51  * xan_joined
10:01:07  * Lethalmanjoined
10:03:54  * Lethalmanquit (Read error: Connection reset by peer)
12:03:12  * RT|Chatzilla_joined
12:03:16  * decoder_joined
12:06:34  * lummoxquit (Ping timeout: 272 seconds)
12:06:38  * RT|Chatzillaquit (Ping timeout: 272 seconds)
12:06:38  * decoderquit (Ping timeout: 272 seconds)
12:06:38  * [[zz]]quit (Ping timeout: 272 seconds)
12:07:03  * [[zz]]joined
12:08:00  * RT|Chatzilla_changed nick to RT|Chatzilla
12:08:46  * lummoxjoined
12:23:09  * [[zzz]]joined
12:27:02  * [[zz]]quit (Ping timeout: 265 seconds)
12:41:24  * [[zzz]]changed nick to [[zz]]
13:57:25  * jaseemabidquit (Ping timeout: 245 seconds)
14:32:03  * abraxasjoined
14:37:03  * abraxasquit (Ping timeout: 260 seconds)
15:05:46  * xan_quit (Ping timeout: 246 seconds)
15:14:46  * jaseemabidjoined
15:26:23  * xan_joined
15:39:26  * jaseemabidquit (Ping timeout: 252 seconds)
16:18:27  * RT|Chatzillaquit (Quit: ChatZilla 0.9.86.1 [Firefox 2.0.0.22pre/2009081014])
17:22:46  * octetcloudjoined
18:56:57  * arexusjoined
19:41:06  * seventhjoined
19:48:39  * seventhquit (Ping timeout: 240 seconds)
20:11:52  * seventhjoined
20:35:13  * abraxasjoined
20:39:40  * abraxasquit (Ping timeout: 246 seconds)
21:56:13  * C-Manjoined
22:48:59  * C-Manquit (Quit: Connection reset by beer)
23:04:05  * arexusquit (Quit: arexus)
23:32:59  * xan_quit (Ping timeout: 252 seconds)