From jasapp at gmail.com Tue Sep 11 00:39:29 2007 From: jasapp at gmail.com (Jeff Sapp) Date: Mon, 10 Sep 2007 19:39:29 -0500 Subject: [s-xml-rpc-devel] loss of precision on double Message-ID: <83cd66360709101739m5f374910qea62d6f4c9f585c7@mail.gmail.com> Hey, I was using s-xml-rpc to receive some double values and I noticed that was losing precision on them. I looked a bit closer and I noticed that the function decode-xml-rpc-new-element was reading in doubles with read-from-string which has a default return type of single-float. I'd still consider myself new at this lisp business, so my fix probably isn't stellar. I've also run into some performance issues and I was wondering if anyone had some advice. The function I'm having particular trouble with returns a list of lists, where the outside list is about 20k elements long, and the inside lists around no larger than 20. It takes about two minutes to encode the whole thing. If you had to make the encoding more efficient, where would you start? Thanks, ~jeff -------------- next part -------------- A non-text attachment was scrubbed... Name: patch.diff Type: application/octet-stream Size: 169 bytes Desc: not available URL: