2008-11-12 GnuCash IRC logs
01:29:21 *** bz has joined #gnucash
01:29:56 <bz> I'm looking into a performance problem in one of the gnucash reports, and I have a profile here that tells me where in the C code the time is spent
01:30:36 <bz> That doesn't help me that much with figuring out what the corresponding Scheme code is, unfortunately....
01:31:30 <bz> The time seems to be in scm_iprin1, called from scm_iprlist, called from scm_iprin1, called from scm_prin1, called from scmsimple_format
01:31:37 <bz> er, scm_simple_format
01:31:46 <bz> After that it's scm_deval all the way up
01:32:16 <bz> It looks like this is someone trying to stringify a list, maybe
01:32:21 <bz> Is that right?
02:45:32 *** bentob0x has joined #gnucash
03:09:17 *** aindilis` has joined #gnucash
03:11:50 *** aindilis has quit IRC
03:40:27 *** jamie has quit IRC
04:46:34 *** Teka has joined #gnucash
06:16:17 *** nodje has quit IRC
07:26:35 *** twunder has joined #gnucash
07:41:46 *** JimRaehl has left #gnucash
07:52:55 *** twunder has quit IRC
07:52:56 *** Rolf1 has quit IRC
07:53:14 *** Rolf1 has joined #gnucash
07:54:54 *** JimRaehl has joined #gnucash
08:23:59 *** twunder has joined #gnucash
08:44:36 <jsled> bz: *maybe* really hard to say.
08:47:26 *** warlord-afk is now known as warlord
08:47:51 <warlord> bz: profiling guile is pretty hard...
08:47:55 <bz> jsled: that's sorta the problem I'm having
08:47:58 <warlord> (definitely harder from the C side)
08:48:18 <bz> hey, if there's a way to profile from the scheme side, I'd love that
08:48:22 <bz> I just happened to have Shark handy
08:49:09 <warlord> http://www.gnu.org/software/guile/docs/faq/guile-faq.html#Is-there-a-Scheme-code-profiler-that-works-with-Guile_003f
08:49:12 <bz> I wouldn't even need to profile if I had some idea of which operations involved are O(1) and which are O(N)
08:49:27 <bz> (set! splits (cdr splits))
08:49:31 <bz> for example
08:49:38 <bz> seems like it should be O(1) ?
08:49:58 <warlord> yes, that should be O(1)
08:50:17 <bz> warlord: thanks for the pointer
08:50:43 <warlord> I googled for "profiling guile programs" and it was near the top.
08:51:12 <bz> "guile" was the key ingredient I was missing for my googling
08:53:42 <warlord> :)
08:59:21 <warlord> time for me to head out.. Be back later this afternoon.
09:04:18 *** warlord has quit IRC
09:15:52 *** bz has quit IRC
09:24:35 *** bz has joined #gnucash
09:25:07 *** wizkid238 has quit IRC
09:29:09 *** ska has joined #gnucash
09:29:28 *** wizkid238 has joined #gnucash
09:29:48 <ska> Anyone know status of gnucash macport on 10.5.5 osx?
09:30:23 <ska> I can't seem to install gnome-keyring. not a problem of gnucash, but I thought to ask here first.
09:36:00 *** ska has quit IRC
10:10:00 *** ErKa has joined #gnucash
10:16:20 *** benjamin has joined #gnucash
10:48:02 <bz> Well, so I tried using statprof
10:48:18 <bz> it works in a small testcase, but if I try it inside the gnucash report it claims to have 0 samples. :(
10:54:29 <bz> Is there something special about the way gnucash starts guile that would affect this?
11:09:07 <bz> oh, c'mon!
11:09:14 * bz finds the source of the performance problem
11:10:17 <bz> or at least a lot of it
11:18:27 <bz> apparently gnc:debug is not enough of a no-op. :(
11:18:51 <jsled> nice.
11:19:01 <bz> (gnc:debug "splits " splits)
11:19:17 <bz> where splits is a list
11:19:31 <bz> and we keep doing (set! splits (cdr splits))
11:19:40 <bz> and calling that gnc:debug after every set!
11:20:00 <bz> it apparently stringifies the list before deciding to not print anything. :(
11:20:07 <bz> O(N^2) in list length and all
11:34:49 <bz> cuts down the time for this report from 5+ minutes to about 4 seconds....
12:03:21 <bz> I put a patch for the performance problem in http://bugzilla.gnome.org/show_bug.cgi?id=543332
12:03:26 <bz> Not sure where I go from here
12:03:44 * bz doesn't see a way to request reviews and such, nor does he know whom to request them from
12:09:42 *** wizkid238 has quit IRC
12:10:16 *** wizkid238 has joined #gnucash
12:15:52 <bz> What's weird is that the gnc:debug call has been there for a good long while
12:17:13 <bz> did gnc:debug behavior change?
12:58:31 *** sjc has joined #gnucash
13:37:24 *** [FireBird] has joined #gnucash
13:37:55 <[FireBird]> Hi, spanish¿?
13:39:11 *** Espressolino has joined #gnucash
13:39:38 *** [FireBird] has quit IRC
13:40:38 <Espressolino> Ich will mit Gnucash Kontenblätter drucken. (Alle benutzten Konten auf einmal)
13:42:00 <jsled> This is primarily an english channel.
13:42:21 <jsled> Though there are some german speakers, and some people might know spanish.
13:44:25 *** ErKa has quit IRC
13:44:30 <Espressolino> Ups.. I want to know how to print all my used ledgers at the end of the year. How can i do that with Gnucash? Am i here right for userquestions?
13:45:24 <jsled> yes, user questions are fine here. Please wait as as long as you are able for a response.
14:01:55 *** nomeata has joined #gnucash
14:31:58 *** cortana has joined #gnucash
15:02:32 *** Espressolino has left #gnucash
15:14:15 <bz> Is gnc:account-get-comm-balance-at-date O(1) in number of transactions in the account before the date? Or O(N)?
15:15:22 *** aindilis` has quit IRC
15:22:12 *** aindilis has joined #gnucash
15:25:57 *** bentob0x has quit IRC
15:46:18 *** andyt has joined #gnucash
15:46:24 *** Papa_Tango has joined #gnucash
15:48:19 <Papa_Tango> ?
15:49:28 <jsled> Papa_Tango: if that's a form of meta-asking, please don't. :) If you have a question, just ask and wait for a response.
15:51:26 *** Zoolooc has joined #gnucash
15:57:44 *** Papa_Tango has quit IRC
15:58:29 *** Teka has quit IRC
16:02:07 <bz> are there particular times of day when one is more likely to get a response?
16:02:23 * bz would really rather not be checking this window every few minutes
16:14:19 *** warlord has joined #gnucash
16:14:19 *** gncbot sets mode: +o warlord
16:35:03 *** aindilis` has joined #gnucash
16:44:14 *** aindilis has quit IRC
16:54:35 *** Zoolooc has quit IRC
16:55:11 *** Zoolooc has joined #gnucash
16:59:05 <jsled> bz: usually early/daytime US is the best given the various participants, but if you want the best chance of response, try the gnucash-devel mailing list.
16:59:28 <jsled> Also, the channel is archived, so you could just say "please respond even if I disconnect; I'll check the logs later" or something.
16:59:37 <warlord> bz: yeah, most of the respondents hold US hours. So I'd say usually 8am-12m US/ET
16:59:51 <jsled> Or, just leave your irc client open (assuming your machine is up all the time, &c.)
17:01:27 <warlord> There is that too. :)
17:19:00 *** twunder has quit IRC
17:30:18 *** andyt has quit IRC
17:48:55 *** nomeata has quit IRC
18:04:37 *** aindilis` has quit IRC
18:24:11 *** Zoolooc has quit IRC
18:25:04 *** Zoolooc has joined #gnucash
18:31:31 *** Zoolooc has quit IRC
18:58:06 *** aindilis has joined #gnucash
19:13:57 *** warlord is now known as warlord-afk
20:12:30 *** cortana has quit IRC
20:20:50 *** ninja has quit IRC
20:50:23 *** sjc has quit IRC
21:27:51 *** benjamin has quit IRC
21:39:25 *** JimRaehl has left #gnucash
21:40:07 *** JimRaehl has joined #gnucash
22:01:06 *** twunder has joined #gnucash
23:29:23 *** twunder has quit IRC