**** BEGIN LOGGING AT Fri Feb 15 02:59:56 2008 Feb 15 05:35:44 ljp there? Feb 15 07:16:40 goxboxlive: yes Feb 15 07:18:57 ljp: is 4.3.2 snapshot on it's way, or will there not be any 4.3.2? Feb 15 08:06:33 should have switched over Feb 15 08:13:20 Inside KeyPressEvent, the following did not work "if(event->key() == (Qt::Key_Return|Qt::Key_Alt))".. I cannot find ALT-ENTER in the list of standard keysequence events.. Why? and how should I do this? Feb 15 08:18:05 Qt.WA_KeyCompression? Feb 15 09:12:11 what needs to be present on the linux system for qtopia-core font sharing to occur? Feb 15 09:12:27 I'm seeing errors in strace for /var/shm not found, is this needed for font sharing? **** BEGIN LOGGING AT Fri Feb 15 09:58:04 2008 Feb 15 09:58:28 Hi,the sqlite3 on Qtopia greenphone is very slow on update Feb 15 09:58:50 it's nearly 1.3 second to update a field Feb 15 09:59:22 and it's between 0.6 to 1.5 second on my greenphone Feb 15 09:59:46 the time consumed is nearly the same no matter how many fields I update Feb 15 10:00:51 it seems that one transaction of a SQLIte keeps around the same time Feb 15 10:01:29 Insert 100 records is just 2 or 3 times longer than insert 10 records in one transaction Feb 15 10:10:57 Anybody know why SQLite on greenphone is so slow in write action? Feb 15 10:11:37 it's unbearable to insert or update any one item in more than 1 second Feb 15 10:12:05 the GUI looks like freezed sporadically Feb 15 10:15:52 writing flat-file on greenphone is fast Feb 15 10:16:12 so it's definetely not problem on the speed of flash Feb 15 10:16:30 it's definetely the problem on sqlite3 itself Feb 15 10:16:42 but the sqlite3 on my desktop runs very fast Feb 15 10:17:04 so it's the problem of the sqlite3 bundled in greenphone Feb 15 10:17:40 and I've tested it by the sqlite command line Feb 15 10:18:11 it's confirms that the sqlite3 bundled in greenphone is too slow in write operation Feb 15 10:19:07 maybe I should try to compile a sqlite myself to test on greenphone Feb 15 10:19:21 yes,I'll try now Feb 15 11:29:22 my compiled sqlite is still that slow Feb 15 11:30:01 how can I improve the write performance of sqlite3 on greenphone? Feb 15 12:07:22 nobody uses sqlite on greenphone? Feb 15 12:07:46 I just want to know how long will a update/insert on your system Feb 15 12:08:04 I think the performance on my greenphone is abnormal Feb 15 12:08:31 more than 1 second for a insert/update is unthinkable Feb 15 12:08:33 Qtopia uses sqlite on greenphone Feb 15 12:08:56 rohanpm:of course,I use it too Feb 15 12:09:12 then of course it's not true that nobody uses sqlite on greenphone :-) Feb 15 12:09:16 but the update/insert is unexceptionally slow Feb 15 12:09:20 > 1 second for an insert/update indeed sounds abnormal Feb 15 12:09:53 but I have compiled the sqlite from its website Feb 15 12:09:56 it's still that long Feb 15 12:10:11 but the flat-file write is fast Feb 15 12:10:22 0.1 second for 1M file copy Feb 15 12:11:08 rohanpm: how long will a update/insert takes on your phone Feb 15 12:11:26 izico: don't know, do you have an easy way to test? Feb 15 12:11:57 I have profiles every update/insert of my application Feb 15 12:12:14 and I tested the update/insert by sqlite command line Feb 15 12:12:26 it's really that slow on sqlite command too Feb 15 12:12:50 and I compiled sqlite from the source downloaed from www.sqlite.org Feb 15 12:12:55 it's still that slow Feb 15 12:13:15 the select works as expected Feb 15 12:13:27 about several 10ms Feb 15 12:14:12 and the time of update/insert is linear to the field count or row count Feb 15 12:15:00 insert/update 100 records of every 13 fields consumes just several times more time than update/insert 1 record of 1 field. Feb 15 12:15:39 how many records does your table with ~1 second insert times have? Feb 15 12:15:45 it seems that the time is most consumed in the transaction processing but the update/insert Feb 15 12:16:17 600 records with 13 fields Feb 15 12:16:49 it takes 0.73 seconds here to start sqlite, insert a single row into an empty table, and exit sqlite Feb 15 12:17:05 that's nearly the same Feb 15 12:17:08 1 second seems fairly reasonable for a table of that size actually Feb 15 12:17:20 the time varies from 0.6 to 1.5 seconds on my system. Feb 15 12:17:23 it's not really nearly the same, because the time to start the sqlite program is significant Feb 15 12:18:17 let me try the command overhead now Feb 15 12:19:39 hi,rohanpm: Feb 15 12:19:56 the command overhead is negligable Feb 15 12:20:08 try putting the database file on tmpfs, like /var Feb 15 12:20:24 `strace -c' shows that the biggest time wasters are open() and fsync() Feb 15 12:20:44 I've tried :inmemory: Feb 15 12:20:47 that's fast Feb 15 12:21:16 I guess tmpfs is the same as :inmemory: in performance Feb 15 12:21:16 what's :inmemory: ? an sqlite option? Feb 15 12:21:31 is there one to disable the journal? Feb 15 12:21:34 In memory database Feb 15 12:21:57 database in ram disk Feb 15 12:22:02 just like tmpfs Feb 15 12:22:04 yeah, I get what it means :-) Feb 15 12:22:20 no that option in pragma Feb 15 12:22:26 ok Feb 15 12:22:39 ok,at least I know this is not my problem Feb 15 12:22:39 is there a pragma to turn off journaling perhaps? Feb 15 12:22:50 it's a general problem Feb 15 12:23:02 no pragma to turn off journal Feb 15 12:23:21 I began to profile my program from yesterday Feb 15 12:23:31 and I've profiled it from 1 day by now Feb 15 12:24:06 the only bottleneck in my appilcation now is this sqlite update/insert problem Feb 15 12:24:29 1 sec update/insert will freeze the UI Feb 15 12:24:29 you can move it to a separate thread to avoid freezing the UI Feb 15 12:25:11 the greenphone disk is really really slow and I believe there is no way around it Feb 15 12:26:02 separate threads will have separate event loop? Feb 15 12:26:41 but I have tested the flat file write Feb 15 12:27:01 cp a 1M file is only 0.1 to 0.2 second Feb 15 12:27:36 that doesn't sync though Feb 15 12:27:52 try a cp followed by a sync immediately Feb 15 12:27:57 let's test the sync now Feb 15 12:28:03 yes, each thread can have its own event loop Feb 15 12:28:29 you don't necessarily need an event loop in the second thread though Feb 15 12:29:25 yes,you are right Feb 15 12:29:58 it's 3 second to sync 1M cp Feb 15 12:30:12 300k/sec Feb 15 12:30:22 really bad Feb 15 12:30:51 ok,I'll take your advice Feb 15 12:32:51 maybe it's just a problem of greenphone Feb 15 12:32:57 how about openmoko? Feb 15 12:33:03 qtopia runs on it now Feb 15 12:34:39 the neo ought to have faster IO Feb 15 12:34:47 I haven't tested that though Feb 15 12:35:24 applications start up faster on the neo though Feb 15 12:36:20 thanks for your information Feb 15 12:36:59 I've just written a RSS reader for Qt/Qtopia Feb 15 12:37:17 and after I sold that program,I'll buy a new Qtopia phone Feb 15 12:37:23 or a Android phone later Feb 15 12:38:15 my RSS reader is consumes few resouce and very memory efficient Feb 15 12:38:34 the only bottleneck is this update/insert problem Feb 15 12:39:47 I'll release my RSS reader online next week Feb 15 12:39:58 hope you will enjoy it too Feb 15 12:40:28 i thought you were selling it? Feb 15 12:40:46 yes,I want to earn some money by my work Feb 15 12:41:01 there's no free mobile RSS reader now Feb 15 12:41:09 i never enjoy software I have to pay for :-) Feb 15 12:41:24 sorry,rohan Feb 15 12:41:37 but I'll send a private copy to you Feb 15 12:41:46 you have helped me Feb 15 12:41:52 ok then Feb 15 12:42:04 you can give me your address Feb 15 12:42:14 I'll send to you next week Feb 15 12:42:25 and I will send it to Trolltech too Feb 15 12:42:39 in what way you will send it to Trolltech? Feb 15 12:42:55 some guys in trolltech is interested in a mobile RSS reader Feb 15 12:43:20 do you know the greenphone grant program? Feb 15 12:43:54 yes Feb 15 12:44:08 there's no any result by now Feb 15 12:44:24 Android has 10M bonus Feb 15 12:44:57 I'll take the second Android contest after I see the real Andriod phone Feb 15 12:45:40 There's no any bonus in the greenphone grant program? Feb 15 12:46:15 I don't know much about the grant program Feb 15 12:46:44 what kind of program do you write?rohan? Feb 15 12:47:04 I also work for Trolltech :-) Feb 15 12:47:09 oh Feb 15 12:47:34 you trolls are great at programming, Feb 15 12:47:39 but bad at business Feb 15 12:47:46 but I'm bad at business too Feb 15 12:48:08 you write great program but lose money Feb 15 12:48:13 i think we're pretty good at business :) Feb 15 12:48:41 MySQL is sold in 1 billion Feb 15 12:48:58 but troll is only 100M Feb 15 12:49:21 though I think Qt/Qtopia is way way better than MySQL Feb 15 12:49:39 yeah, "only" 100M... not even enough for every troll to have a huge mansion Feb 15 12:49:40 you are great nerd but businessman Feb 15 12:49:52 yes Feb 15 12:50:28 it's not a good acquisition for any employee Feb 15 12:50:37 no one earn money in it Feb 15 12:50:59 Yahoo is offered by MS at 40b Feb 15 12:51:18 though I think TT write better program than Yahoo Feb 15 12:51:38 nerds only can not earn money now Feb 15 12:51:59 the businessman control the world now Feb 15 12:52:25 if you don't care about money then the businessman does not control you Feb 15 12:52:44 no,I must eat and live Feb 15 12:53:04 so I must be controlled by businessman if I'm not good at business Feb 15 12:53:16 I'm learning to do business myself now Feb 15 12:53:25 i'm sorry to hear that Feb 15 12:53:41 this is the first time that I write a program for myself and market it myself now Feb 15 12:53:57 I write program for internal use in the past Feb 15 12:54:40 I want to be free,but I may not be gifted and clever enough to be free Feb 15 12:55:07 freedom is a forever dream for me Feb 15 12:55:26 ok,rohan Feb 15 12:55:33 what's your mail? Feb 15 12:55:55 I'll send to your next week when I send to some other guys in your company too Feb 15 12:56:17 rmcgover@trolltech.com Feb 15 12:56:18 tt is full of nice nerds Feb 15 12:57:41 ok,rohan,see you Feb 15 12:57:52 goodnight Feb 15 12:58:03 you trolls are nice guys/girls Feb 15 12:58:20 I'd like to chat with you Feb 15 12:58:50 :-) Feb 15 14:35:18 morning Feb 15 17:04:54 hello good people. Feb 15 17:07:28 Opie is based on Qtopia. Opie is an open source project. So, does this mean that I can develop commercial applications based on Opie without having a Qtopia commercial license? Feb 15 17:22:17 mndar: what's Opie's license? Feb 15 17:24:25 mndar: I'm quite sure that Opie is GPL'ed (as are Qtopia and Qt), so you'd have to adhere to the GPL Feb 15 17:29:15 I thought so too...just wanted a confirmation Feb 15 17:33:22 say I write a wrapper around Opie or Qtopia and release it under LGPL Feb 15 17:33:32 now can I develop commercial applications using this wrapper ? Feb 15 18:32:04 mndar: ask your lawyer, but in general you are not allowed to use Qt under the GPL if you are developing commercial applications with it Feb 15 18:32:20 mndar: that does not go away by wrapping stuff around it Feb 15 18:32:24 plus, LGPL != GPL Feb 15 18:37:54 ok..so something as simple as wrapping might not do it... Feb 15 18:38:51 can u develop commercial applications based on KDE libs ? Feb 15 18:42:22 mndar: no Feb 15 18:43:04 mndar: and you probably won't find a legal or morally acceptable way to (ab)use other peoples' work done for the community without giving back either money or code. Feb 15 18:43:35 i thought KDE libs were LGLed Feb 15 18:43:50 where commercial == closed source with restrictive licenses, nobody stops you from selling opensource software of course. Feb 15 18:44:20 you'd still need Qt for that. Feb 15 18:44:56 you can't write a KDE app without using Qt. Feb 15 18:45:12 my app won't be using Qt directly... Feb 15 18:45:59 ask your lawyer, or maybe in #qt Feb 15 18:46:05 doubt they will tell you something different though. Feb 15 18:46:08 anyway, off Feb 15 18:48:56 k Feb 15 19:03:52 heh Feb 15 19:09:29 ljp: I have a problem showing a dialog :( Feb 15 19:09:56 when it pops up it's small, then if I select a combo it goes full screen (?) Feb 15 19:51:45 Hi ljp, its me again ;-) Any news about the grennphone 4.3.1 sdk? **** ENDING LOGGING AT Sat Feb 16 02:59:57 2008